summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2020-10-11 20:59:24 +0200
committerOlivier Fourdan <fourdan@xfce.org>2020-10-27 21:03:04 +0100
commit083e6de029753c73a9c3b6cbd4685d6815cedddb (patch)
tree81d89cb4a05e1d3c28da5e1a5700baaa8e08c167 /src/netwm.c
parentfb4c9aec1ac2ecbf5fa25281c207fb1493673436 (diff)
downloadxfwm4-083e6de029753c73a9c3b6cbd4685d6815cedddb.tar.gz
Yet more XError traps
Signed-off-by Olivier Fourdan <fourdan@xfce.org> https://gitlab.xfce.org/xfce/xfwm4/-/issues/444 https://gitlab.xfce.org/xfce/xfwm4/-/issues/436 https://gitlab.xfce.org/xfce/xfwm4/-/issues/433 https://gitlab.xfce.org/xfce/xfwm4/-/issues/405
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netwm.c b/src/netwm.c
index 2b2297143..8936c0f11 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1606,7 +1606,9 @@ clientAddUserTimeWin (Client * c)
if ((c->user_time_win != None) && (c->user_time_win != c->window))
{
+ myDisplayErrorTrapPush (display_info);
XSelectInput (display_info->dpy, c->user_time_win, PropertyChangeMask);
+ myDisplayErrorTrapPopIgnored (display_info);
}
}
@@ -1626,6 +1628,8 @@ clientRemoveUserTimeWin (Client * c)
if ((c->user_time_win != None) && (c->user_time_win != c->window))
{
+ myDisplayErrorTrapPush (display_info);
XSelectInput (display_info->dpy, c->user_time_win, NoEventMask);
+ myDisplayErrorTrapPopIgnored (display_info);
}
}