summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-12 14:47:52 +0100
committerwm4 <wm4@nowhere>2019-12-12 14:47:52 +0100
commit22e4aac9fa116d7034056d0c8aa496bd60e147eb (patch)
tree5d7d99b2653eeefa0ab2675b791acc4834418922
parentaee413d246bd183c943c2face339433478719317 (diff)
downloadmpv-22e4aac9fa116d7034056d0c8aa496bd60e147eb.tar.bz2
mpv-22e4aac9fa116d7034056d0c8aa496bd60e147eb.tar.xz
wayland: remove unnecessary VO_EVENT_FULLSCREEN_STATE
This is needed and used only for VOCTRL_GET_FULLSCREEN, which the wayland code got rid of.
-rw-r--r--video/out/wayland_common.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 41c2d1ac22..e4ea6d3687 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -947,7 +947,6 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
struct mp_vo_opts *vo_opts = wl->vo_opts;
struct mp_rect old_geometry = wl->geometry;
- int prev_fs_state = wl->vo_opts->fullscreen;
bool is_maximized = false;
bool is_fullscreen = false;
enum xdg_toplevel_state *state;
@@ -984,8 +983,6 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
vo_opts->window_maximized = is_maximized;
m_config_cache_write_opt(wl->vo_opts_cache, &vo_opts->window_maximized);
- if (prev_fs_state != is_fullscreen)
- wl->pending_vo_events |= VO_EVENT_FULLSCREEN_STATE;
if (!(wl->pending_vo_events & VO_EVENT_LIVE_RESIZING))
vo_query_and_reset_events(wl->vo, VO_EVENT_LIVE_RESIZING);