mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
In normal mode set normal window window type hint.
This commit is contained in:
parent
ec1f399e32
commit
f443c56487
2 changed files with 5 additions and 0 deletions
|
@ -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 ), \
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Add table
Reference in a new issue