Commit 98abe925 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

hints: Protect against XError from XGetTransientFor()

Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <>
Closes: #472
parent 533fc586
Pipeline #4905 passed with stages
in 2 minutes and 49 seconds
......@@ -691,9 +691,15 @@ setUTF8StringHint (DisplayInfo *display_info, Window w, int atom_id, const gchar
getTransientFor (DisplayInfo *display_info, Window root, Window w, Window * transient_for)
int result, status;
TRACE ("window 0x%lx", w);
if (XGetTransientForHint (display_info->dpy, w, transient_for))
myDisplayErrorTrapPush (display_info);
status = XGetTransientForHint (display_info->dpy, w, transient_for);
result = myDisplayErrorTrapPop (display_info);
if ((result == Success) && status)
if (*transient_for == None)
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