summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2015-11-26 09:22:54 +0100
committerOlivier Fourdan <fourdan@xfce.org>2015-11-26 10:01:28 +0100
commita64b74377d7e472cd40b227349308cb3853e1d6b (patch)
tree1a7a63546a85b52740a04089e17afe5ab5bde05e /src/netwm.c
parent2321afb386eaceda50bf81ea6ad8c25b12f9f93c (diff)
downloadxfwm4-a64b74377d7e472cd40b227349308cb3853e1d6b.tar.gz
netwm: reset decoration on netwm type change
Bug: 10413 Some applications may temporarily set a transient relationship betwen their toplevel windows to maintain a stacking order, in which case we would change the decorations (as transients may not have all buttons available). However, we ought to restore the controls when this transient relationship is removed by the application, otherwise we leave the toplevels with reduced controls. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netwm.c b/src/netwm.c
index 51490e557..f779bc80b 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1195,6 +1195,8 @@ clientWindowType (Client * c)
old_type = c->type;
c->initial_layer = c->win_layer;
+ clientApplyMWMHints (c, FALSE);
+
if (c->type_atom != None)
{
if (c->type_atom == display_info->atoms[NET_WM_WINDOW_TYPE_DESKTOP])