summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-10-05 15:34:48 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-10-05 15:42:08 +0100
commitbee6ca5225e915f64ee36aaea1f66ada20f18e4c (patch)
tree0324484389dcdfe5a3b646f800973bc82867cb77 /video
parent158b69f04cac6685eadd1a96c36f5d1f644c5b0b (diff)
downloadmpv-bee6ca5225e915f64ee36aaea1f66ada20f18e4c.tar.bz2
mpv-bee6ca5225e915f64ee36aaea1f66ada20f18e4c.tar.xz
wayland_common: reset the LIVE_RESIZING flag when resizing ends
The VO code resets each flag individually, and it doesn't do it for this one. Also make the prints use the struct names rather than the hardcoded ones, forgot to add those to the last wayland_common commit.
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 1e69b25855..fc8a07c85d 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -826,6 +826,9 @@ static void handle_toplevel_config(void *data, struct zxdg_toplevel_v6 *toplevel
}
}
+ if (!(wl->pending_vo_events & VO_EVENT_LIVE_RESIZING))
+ vo_query_and_reset_events(wl->vo, VO_EVENT_LIVE_RESIZING);
+
if (width > 0 && height > 0) {
if (!wl->fullscreen) {
if (wl->vo->opts->keepaspect && wl->vo->opts->keepaspect_window &&
@@ -941,19 +944,20 @@ int vo_wayland_init(struct vo *vo)
/* Do a roundtrip to run the registry */
wl_display_roundtrip(wl->display);
- if (!wl->shell) {
- MP_FATAL(wl, "Compositor doesn't support the zxdg_shell_v6 protocol!\n");
- return false;
- }
if (!wl->idle_inhibit_manager)
- MP_VERBOSE(wl, "Compositor doesn't support the "
- "zwp_idle_inhibit_manager_v1 protocol!\n");
+ MP_VERBOSE(wl, "Compositor doesn't support the %s protocol!\n",
+ zwp_idle_inhibit_manager_v1_interface.name);
if (!wl->dnd_devman)
- MP_VERBOSE(wl, "Compositor doesn't support the "
- "wl_data_device_manager (v3) protocol!\n");
+ MP_VERBOSE(wl, "Compositor doesn't support the %s (ver. 3) protocol!\n",
+ wl_data_device_manager_interface.name);
if (!wl->server_decoration_manager)
- MP_VERBOSE(wl, "Compositor doesn't support the "
- "org_kde_kwin_server_decoration_manager protocol!\n");
+ MP_VERBOSE(wl, "Compositor doesn't support the %s protocol!\n",
+ org_kde_kwin_server_decoration_manager_interface.name);
+ if (!wl->shell) {
+ MP_FATAL(wl, "Compositor doesn't support the required %s protocol!\n",
+ zxdg_shell_v6_interface.name);
+ return false;
+ }
if (spawn_cursor(wl))
return false;