Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit f0915aa

Browse files
committed
check status of Window * before grabbing _NET_WM_NAME property (possible fix for #14)
1 parent a3e320a commit f0915aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plat/linux/detect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ void detect_wm(void)
652652
0, KB, false, XA_WINDOW, &actual_type, &actual_format, &nitems,
653653
&bytes, (unsigned char **) &wm_check_window)))
654654
{
655-
if (!(XGetWindowProperty(disp, *wm_check_window,
655+
if (wm_check_window && !(XGetWindowProperty(disp, *wm_check_window,
656656
XInternAtom(disp, "_NET_WM_NAME", true), 0, KB, false,
657657
XInternAtom(disp, "UTF8_STRING", true), &actual_type,
658658
&actual_format, &nitems, &bytes, (unsigned char **) &wm_name)))

0 commit comments

Comments
 (0)