diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2019-02-04 11:27:49 +0100 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2019-09-21 15:24:06 +0200 |
commit | 9e304ab974559907790829421a11e26eb2b630e5 (patch) | |
tree | dfd3261e8c34bc5994993b80dedbec3d1a923d31 /video/out/wayland_common.h | |
parent | 1c43920fb85387aaf7267b4b79dc829896bd610d (diff) | |
download | mpv-9e304ab974559907790829421a11e26eb2b630e5.tar.bz2 mpv-9e304ab974559907790829421a11e26eb2b630e5.tar.xz |
wayland: reconfigure cursor on pointer enter event
On wayland the cursor has to be configured each time the pointer enters.
Currently if the window (re)gains the focus, the pointer is not hidden,
even when configured. After the mouse has been moved the pointer hides
correctly.
https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_pointer:
wl_pointer::enter - enter event
...
When a seat's focus enters a surface, the pointer image is undefined
and a client should respond to this event by setting an appropriate
pointer image with the set_cursor request.
Fixes #6185.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 0648efa09a..735b312e97 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -101,6 +101,7 @@ struct vo_wayland_state { struct wl_cursor *default_cursor; struct wl_surface *cursor_surface; int allocated_cursor_scale; + bool cursor_visible; }; int vo_wayland_init(struct vo *vo); |