[Xfce4-commits] [xfce/xfwm4] 05/07: events: Avoid XErrors with button release events

noreply at xfce.org noreply at xfce.org
Wed May 8 09:31:24 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 078a29799bfdf84886322d7da91b2c3019b6bd8c
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed May 8 09:09:33 2019 +0200

    events: Avoid XErrors with button release events
    
    Some more XErrors trap.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/events.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/events.c b/src/events.c
index 155281f..99c3395 100644
--- a/src/events.c
+++ b/src/events.c
@@ -1111,6 +1111,7 @@ handleButtonRelease (DisplayInfo *display_info, XfwmEventButton *event)
 
     /* Get the screen structure from the root of the event */
     screen_info = myDisplayGetScreenFromRoot (display_info, event->root);
+    myDisplayErrorTrapPush (display_info);
     if (screen_info)
     {
         XSendEvent (display_info->dpy, screen_info->xfwm4_win, FALSE, SubstructureNotifyMask,
@@ -1119,6 +1120,7 @@ handleButtonRelease (DisplayInfo *display_info, XfwmEventButton *event)
 
     /* Release pending events */
     XAllowEvents (display_info->dpy, SyncPointer, CurrentTime);
+    myDisplayErrorTrapPopIgnored (display_info);
 
     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