diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-02-03 11:39:30 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-02-03 11:39:30 +0100 |
commit | 530036e5b34788d23dabadb8896f8e41e8f612d8 (patch) | |
tree | bab5d62b834c248c56770048ba2ff44b9fc1f801 /video/out/vo_opengl_old.c | |
parent | ce29e58fe3bd82a53413f79aa59d6c8e0c4a89fd (diff) | |
download | mpv-530036e5b34788d23dabadb8896f8e41e8f612d8.tar.bz2 mpv-530036e5b34788d23dabadb8896f8e41e8f612d8.tar.xz |
cocoa_common: fix focus with --ontop and space switching
The main problem this commit addresses is when you switched spaced back and
forth with `--ontop` active the video window didn't recive focus again.
Turns out that setting a normal window level just before conceding focus to
other apps / spaces fixes the problem. I think Cocoa is misbehaving here, and
should probably file a radar.
I found 3 related improvements while fixing this:
* fullscreen_window_level is a dead body from an older implementation.
* Use NSScreenSaverWindowLevel for ontop. This should be a really high window
level. Definitely higher than NSNormalWindowLevel + 1.
* The window level was set correctly only when out of fullscreen.
Diffstat (limited to 'video/out/vo_opengl_old.c')
0 files changed, 0 insertions, 0 deletions