Skip to content

Commit

Permalink
This should fix #500.
Browse files Browse the repository at this point in the history
  • Loading branch information
gyunaev committed Sep 19, 2022
1 parent 0d1f5de commit a3c2b5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/windowtools_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ static Window findWindow(Display *display, Window window, bool checkNormality, c
Window *children;
unsigned int num_child;

if ( window == 0 )
return None;

if (XQueryTree(display, window, &root, &parent, &children, &num_child) != 0) {
for (unsigned int i = 0; i < num_child; i++) {
if (analyzeWindow(display, children[i], ename) && !dockedWindows.contains(children[i])
Expand Down

0 comments on commit a3c2b5a

Please sign in to comment.