diff options
author | Dudemanguy <random342@airmail.cc> | 2023-05-17 16:13:04 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-05-17 16:13:04 -0500 |
commit | f677f8a5a728f906b2176b3f1622c2c986de58fb (patch) | |
tree | 8977fb762b2fab127fa5f9abe5b1e6c82e5d8aec /video/out/dither.c | |
parent | 1237bf0d739a163c8308af97d7e482c64945dc65 (diff) | |
download | mpv-f677f8a5a728f906b2176b3f1622c2c986de58fb.tar.bz2 mpv-f677f8a5a728f906b2176b3f1622c2c986de58fb.tar.xz |
wayland: improve guessing when mpv is focused
The current implementation is order dependent and assumes that getting
keyboard input happens before the toplevel is activated. This isn't
necessarily the case and indeed mutter activates the toplevel first.
Improve this by simply spinning off the check to a function and calling
it in the three places where it would be needed: the toplevel
configuration event, keyboard entering, and keyboard leaving. This
fixes #11694.
Diffstat (limited to 'video/out/dither.c')
0 files changed, 0 insertions, 0 deletions