mirror of
https://github.com/brl/mutter.git
synced 2025-08-08 17:34:52 +00:00
Support _NET_WM_STATE_STICKY (i.e. allow third-party apps to decide
2008-10-23 Thomas Thurman <tthurman@gnome.org> Support _NET_WM_STATE_STICKY (i.e. allow third-party apps to decide whether a window is on all workspaces). Bug found by Ka-Hing Cheung. Closes #557536. * src/core/window.c (set_net_wm_state): report it * src/core/window.c (meta_window_client_message): set sticky if we receive it * src/core/window-props.c: set sticky if we find it * src/core/atomnames.h: add _NET_WM_STATE_STICKY svn path=/trunk/; revision=3991
This commit is contained in:

committed by
Thomas James Alexander Thurman

parent
c91475f20f
commit
ab9bdf228b
@@ -580,6 +580,8 @@ reload_net_wm_state (MetaWindow *window,
|
||||
window->wm_state_below = TRUE;
|
||||
else if (value->v.atom_list.atoms[i] == window->display->atom__NET_WM_STATE_DEMANDS_ATTENTION)
|
||||
window->wm_state_demands_attention = TRUE;
|
||||
else if (value->v.atom_list.atoms[i] == window->display->atom__NET_WM_STATE_STICKY)
|
||||
window->on_all_workspaces = TRUE;
|
||||
|
||||
++i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user