In normal mode set normal window window type hint.

This commit is contained in:
Dave Davenport 2015-09-10 19:24:23 +02:00
parent ec1f399e32
commit f443c56487
2 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,7 @@ int window_get_cardinal_prop ( Display *display, Window w, Atom atom, unsigned l
X ( _NET_WM_WINDOW_TYPE ), \
X ( _NET_WM_WINDOW_TYPE_DOCK ), \
X ( _NET_WM_WINDOW_TYPE_DESKTOP ), \
X ( _NET_WM_WINDOW_TYPE_NORMAL ), \
X ( _NET_WM_DESKTOP ), \
X ( CLIPBOARD ), \
X ( UTF8_STRING ), \

View File

@ -220,6 +220,10 @@ static Window create_window ( Display *display )
XSetWindowAttributes sattr = { .override_redirect = True };
XChangeWindowAttributes ( display, box, CWOverrideRedirect, &sattr );
}
else{
window_set_atom_prop ( display, box, netatoms[_NET_WM_WINDOW_TYPE],
&netatoms[_NET_WM_WINDOW_TYPE_NORMAL], 1 );
}
// Set the WM_NAME
XStoreName ( display, box, "rofi" );