mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 15:41:55 +00:00
x11: fix --wid=0
Another fallout resulting from the changes whether or not to wait for mapping the window. In this case, it obviously makes no sense to wait for mapping, because the root window is always mapped. Mapping will never happen, and it would wait forever. Fixes #1139. CC: @mpv-player/stable
This commit is contained in:
parent
7ffb621434
commit
6dad7d6fe7
@ -1328,6 +1328,7 @@ void vo_x11_config_vo_window(struct vo *vo, XVisualInfo *vis, int flags,
|
||||
if (opts->WinID >= 0) {
|
||||
if (opts->WinID == 0) {
|
||||
x11->window = x11->rootwin;
|
||||
x11->pseudo_mapped = true;
|
||||
XSelectInput(x11->display, x11->window, StructureNotifyMask);
|
||||
} else {
|
||||
XSelectInput(x11->display, opts->WinID, StructureNotifyMask);
|
||||
|
Loading…
Reference in New Issue
Block a user