summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-12-02 09:28:52 -0600
committerDudemanguy <random342@airmail.cc>2019-12-04 00:47:05 +0000
commit7f300a00e929bd728c6cbff27b68bbbf28e85d0f (patch)
treea6d8d254e758b40d1f0367a401982139c74ccbad /video/out/wayland_common.h
parent65a317436df05000366af2738bdbb834e95e33db (diff)
downloadmpv-7f300a00e929bd728c6cbff27b68bbbf28e85d0f.tar.bz2
mpv-7f300a00e929bd728c6cbff27b68bbbf28e85d0f.tar.xz
wayland: fix cursor behavior on an edge case
This small regression was introduced by #7216. Previously, the wayland backend used a trick which kept track of the previous fullscreen state and used that logic for showing the cursor. Since vo_opts now keeps track of the current fullscreen state, most of this stopped being neccessary. However, there was one edge case where the cursor didn't behave the same: passing a fullscreen flag for the inital window. The cursor would initially be visible here which is not desirable. This can be remedied pretty easily by just setting the cursor visiblity to false if the pointer entry event occurs on fullscreen. The only thing we need to do is to make sure that the autohide delay isn't completely disabled (i.e. the cursor is always visible). Hence the need for the previous commit.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index ccf09cce85..1d7ab7b940 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -138,7 +138,6 @@ struct vo_wayland_state {
struct wl_surface *cursor_surface;
int allocated_cursor_scale;
bool cursor_visible;
- bool prev_fullscreen;
};
int vo_wayland_init(struct vo *vo);