mirror of https://github.com/mpv-player/mpv
x11: make display-names property observable
Reuse MP_EVENT_WIN_STATE for this.
This commit is contained in:
parent
f5ed13bcd4
commit
9300351a30
|
@ -3438,7 +3438,7 @@ static const char *const *const mp_event_property_change[] = {
|
|||
E(MP_EVENT_CACHE_UPDATE, "cache", "cache-free", "cache-used", "cache-idle",
|
||||
"demuxer-cache-duration", "demuxer-cache-idle"),
|
||||
E(MP_EVENT_WIN_RESIZE, "window-scale"),
|
||||
E(MP_EVENT_WIN_STATE, "window-minimized"),
|
||||
E(MP_EVENT_WIN_STATE, "window-minimized", "display-names"),
|
||||
};
|
||||
#undef E
|
||||
|
||||
|
|
|
@ -1491,6 +1491,8 @@ static void vo_x11_update_geometry(struct vo *vo)
|
|||
if (fps != x11->current_display_fps)
|
||||
MP_VERBOSE(x11, "Current display FPS: %f\n", fps);
|
||||
x11->current_display_fps = fps;
|
||||
// might have changed displays
|
||||
x11->pending_vo_events |= VO_EVENT_WIN_STATE;
|
||||
}
|
||||
|
||||
static void vo_x11_fullscreen(struct vo *vo)
|
||||
|
|
Loading…
Reference in New Issue