diff options
author | wm4 <wm4@nowhere> | 2015-01-03 03:06:26 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:17 +0900 |
commit | 57829ed95a8c22f575b875b3cbe55bd08567765e (patch) | |
tree | 0b531bb04fe2b37d1474a2c11b8ef3c698d5e8a1 | |
parent | 2f69e8f93c468242c866f82b51d4725bcf7d18f2 (diff) | |
download | mpv-57829ed95a8c22f575b875b3cbe55bd08567765e.tar.bz2 mpv-57829ed95a8c22f575b875b3cbe55bd08567765e.tar.xz |
x11: make display-names property observable
Reuse MP_EVENT_WIN_STATE for this.
-rw-r--r-- | player/command.c | 2 | ||||
-rw-r--r-- | video/out/x11_common.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index ddf4768a11..fbf54d2fd3 100644 --- a/player/command.c +++ b/player/command.c @@ -3357,7 +3357,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 diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 2997b6f8df..5164db06c2 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1492,6 +1492,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) |