[Xfce4-commits] [xfce/xfwm4] 02/02: client: ignore configure requests when maximized
noreply at xfce.org
noreply at xfce.org
Mon Jun 24 19:11:29 CEST 2019
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit 34ff3e1fe027b4005c284fcaf5235e6686cf35fc
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Mon Jun 24 18:49:45 2019 +0200
client: ignore configure requests when maximized
Bug: 13954
Some clients tend to send us a configure request when transitioning to
maximized, which introduces a race condition because the window manager
will remove the maximized flag when the client resizes itself, now that
we allow for that since commit aee8b25a.
Ignore the configure size request from the client when maximized or
fullscreen to work around such behavior from the client.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/client.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/client.c b/src/client.c
index 3bb7a7f..a34408f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -884,7 +884,9 @@ clientMoveResizeWindow (Client *c, XWindowChanges * wc, unsigned long mask)
/* Ignore stacking request for DESKTOP windows */
mask &= ~(CWSibling | CWStackMode);
}
- if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
+ if (FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN)
+ || (FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED)
+ && (c->screen_info->params->borderless_maximize)))
{
/* Not allowed in fullscreen mode */
mask &= ~(CWX | CWY | CWWidth | CWHeight);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list