summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2018-07-18 15:28:23 +0200
committerOlivier Fourdan <fourdan@xfce.org>2018-07-24 11:56:49 +0200
commit5e1354886ae9b22c0fe86ba695ed7f0a63fed14e (patch)
treea5629026c57d24cfd95436029fc4826459a59bd2 /src/netwm.c
parented809a2242e598c665eece910fb64961d4114068 (diff)
downloadxfwm4-5e1354886ae9b22c0fe86ba695ed7f0a63fed14e.tar.gz
netwm: Fix adding maximized state
Bug 14514 xfwm4 would fail to add maximized states using extended window manager hints mechanisms.
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netwm.c b/src/netwm.c
index e8011c3a2..732414c1b 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -378,9 +378,9 @@ clientUpdateNetState (Client * c, XClientMessageEvent * ev)
{
if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_HAS_MAXIMIZE))
{
- if ((action == NET_WM_STATE_ADD) && !FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
+ if ((action == NET_WM_STATE_ADD) && !FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED))
{
- mode = 0L;
+ mode = FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED);
if ((first == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ]) ||
(second == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ]))
{