[Xfce4-commits] [xfce/xfwm4] 01/01: events: ignore client configure requests when maxized

noreply at xfce.org noreply at xfce.org
Thu Jan 10 09:07:05 CET 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 3751c2c716714f84dd3d527b60f3543e96fac54e
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Thu Jan 10 08:59:48 2019 +0100

    events: ignore client configure requests when maxized
    
    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 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/events.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/events.c b/src/events.c
index ccd820d..ecc1573 100644
--- a/src/events.c
+++ b/src/events.c
@@ -1360,10 +1360,14 @@ handleConfigureRequest (DisplayInfo *display_info, XConfigureRequestEvent * ev)
             ev->value_mask &= ~(CWSibling | CWStackMode);
         }
     }
+
     if (c)
     {
         TRACE ("window \"%s\" (0x%lx)", c->name, c->window);
-        if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MOVING_RESIZING))
+        if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MOVING_RESIZING)
+            || FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN)
+            || (FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED)
+                && (c->screen_info->params->borderless_maximize)))
         {
             /* Sorry, but it's not the right time for configure request */
             return EVENT_FILTER_REMOVE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list