summaryrefslogtreecommitdiffstats
path: root/video/csputils.c
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-02-03 11:39:30 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-02-03 11:39:30 +0100
commit530036e5b34788d23dabadb8896f8e41e8f612d8 (patch)
treebab5d62b834c248c56770048ba2ff44b9fc1f801 /video/csputils.c
parentce29e58fe3bd82a53413f79aa59d6c8e0c4a89fd (diff)
downloadmpv-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/csputils.c')
0 files changed, 0 insertions, 0 deletions