Commit 63bece13 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

hints: Guard against XErrors with systray

The systray window is an external window, any X request has the
potential for failure.
Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <>
parent 35683211
......@@ -1419,12 +1419,15 @@ getSystrayWindow (DisplayInfo *display_info, Atom net_system_tray_selection)
TRACE ("entering");
myDisplayErrorTrapPush (display_info);
systray_win = XGetSelectionOwner (display_info->dpy, net_system_tray_selection);
if (systray_win)
XSelectInput (display_info->dpy, systray_win, StructureNotifyMask);
myDisplayErrorTrapPopIgnored (display_info);
TRACE ("new systray window: 0x%lx", systray_win);
return systray_win;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment