summaryrefslogtreecommitdiff
path: root/thirdparty/libtheora/fragment.c
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-09-16 16:33:33 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2021-10-28 10:26:05 -0700
commitb34480b6457c695345faf89c9c0a515b4e333dd5 (patch)
tree730ad4eb9097f1cf6891d21cf773beda8177a5e3 /thirdparty/libtheora/fragment.c
parente2deec67b9b3258f1c4fc7ee8c9a375676a0571a (diff)
Fix window_get_current_screen for X11 display server
This method used to check which screen contains the top-left corner of the window (and default to the first screen in case none is found), which is not accurate in some cases. Now the area of overlap with each screen is calculated, so we can get the best candidate based on the window's position. This makes window_get_current_screen consistent with Windows platform, and fixes an issue where popups appear on the main screen when the main window is slightly moved outside of the desktop on the top or left.
Diffstat (limited to 'thirdparty/libtheora/fragment.c')
0 files changed, 0 insertions, 0 deletions