Skip to content

Commit c8546e0

Browse files
committed
screen_x11: Fix root window check
1 parent df2aee5 commit c8546e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_capture/screen_x11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static bool initialize(struct vidcap_screen_x11_state *s) {
135135
}
136136

137137
s->root = DefaultRootWindow(s->dpy);
138-
if (!s->dpy) {
138+
if (!s->root) {
139139
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Cannot get root window!\n");
140140
return false;
141141
}

0 commit comments

Comments
 (0)