summaryrefslogtreecommitdiffstats
path: root/video/out/opengl
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-05-17 16:13:04 -0500
committerDudemanguy <random342@airmail.cc>2023-05-17 16:13:04 -0500
commitf677f8a5a728f906b2176b3f1622c2c986de58fb (patch)
tree8977fb762b2fab127fa5f9abe5b1e6c82e5d8aec /video/out/opengl
parent1237bf0d739a163c8308af97d7e482c64945dc65 (diff)
downloadmpv-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/opengl')
0 files changed, 0 insertions, 0 deletions