diff options
author | Philip Sequeira <phsequei@gmail.com> | 2019-03-11 00:37:24 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-03-16 21:17:32 +0100 |
commit | 98eea65605e98d3e6febcd1780b68595670d7183 (patch) | |
tree | 212c19acda646639fd1a11d9c178f64128d1a92d /video/out/x11_common.h | |
parent | dd83b66652d93e5422757f569b084867a9052e48 (diff) | |
download | mpv-98eea65605e98d3e6febcd1780b68595670d7183.tar.bz2 mpv-98eea65605e98d3e6febcd1780b68595670d7183.tar.xz |
x11: fix cursor hiding initial state
Regression from 8e3308d687c3acdd0d572015b06efd5b492d93ee.
Broken cases were:
* --no-cursor-autohide acted like --cursor-autohide=always.
* --cursor-autohide-fs-only always hid the cursor if starting
non-fullscreen; entering fullscreen at least once fixed it.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 608534052c..ca01f61b0c 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -88,8 +88,9 @@ struct vo_x11_state { bool pseudo_mapped; // not necessarily mapped, but known window size int fs; // whether we assume the window is in fullscreen mode - bool mouse_cursor_visible; - bool mouse_cursor_set; + bool mouse_cursor_visible; // whether we want the cursor to be visible (only + // takes effect when the window is focused) + bool mouse_cursor_set; // whether the cursor is *currently* *hidden* bool has_focus; long orig_layer; |