Author: olivier
Date: 2007-10-20 18:30:36 +0000 (Sat, 20 Oct 2007)
New Revision: 26157
Modified:
xfwm4/trunk/src/netwm.c
Log:
Set all dock type windows sticky by default, a few other window managers
implement this behaviour and some apps rely on this (bug #3609)
Modified: xfwm4/trunk/src/netwm.c
===================================================================
--- xfwm4/trunk/src/netwm.c 2007-10-20 17:22:23 UTC (rev 26156)
+++ xfwm4/trunk/src/netwm.c 2007-10-20 18:30:36 UTC (rev 26157)
@@ -317,7 +317,7 @@
if ((first == display_info->atoms[NET_WM_STATE_STICKY]) ||
(second == display_info->atoms[NET_WM_STATE_STICKY]))
{
- if (!clientIsValidTransientOrModal (c) && FLAG_TEST (c->xfwm_flags,
XFWM_FLAG_HAS_STICK))
+ if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_HAS_STICK))
{
if ((action == NET_WM_STATE_ADD) && !FLAG_TEST (c->flags,
CLIENT_FLAG_STICKY))
{
@@ -1182,8 +1182,9 @@
TRACE ("atom net_wm_window_type_dock detected");
c->type = WINDOW_DOCK;
c->initial_layer = WIN_LAYER_DOCK;
- FLAG_SET (c->flags,
- CLIENT_FLAG_SKIP_PAGER | CLIENT_FLAG_SKIP_TASKBAR);
+ FLAG_SET (c->flags,
+ CLIENT_FLAG_SKIP_PAGER | CLIENT_FLAG_STICKY |
+ CLIENT_FLAG_SKIP_TASKBAR);
FLAG_UNSET (c->xfwm_flags,
XFWM_FLAG_HAS_BORDER | XFWM_FLAG_HAS_MOVE |
XFWM_FLAG_HAS_HIDE | XFWM_FLAG_HAS_MAXIMIZE |
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits