diff options
author | Dudemanguy <random342@airmail.cc> | 2022-08-11 11:11:27 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-08-14 16:04:23 +0000 |
commit | f781dddabcaf0c7127e28cea1ed035847ef85c06 (patch) | |
tree | c9df1efc7f04d401206487ae941b0ed2ec64dca9 /common/version.c | |
parent | b669a20bb55301e06e7c8dc82b26981b2a696bda (diff) | |
download | mpv-f781dddabcaf0c7127e28cea1ed035847ef85c06.tar.bz2 mpv-f781dddabcaf0c7127e28cea1ed035847ef85c06.tar.xz |
x11: fix display-{width,height} calculation
Unexpectedly, x11->screenrc actually doesn't update with randr events.
In a multimonitor configuration it could easily be wrong depending on
the user's layout. While it's tempting to modify the logic so screenrc
changes with randr events, this rectangle is currently used everywhere
and as far as we know, this pretty much works fine. Instead, just loop
over the randr displays that we have and select it if it overlaps with
the winrc. This follows the same logic as the fps selection in the case
of the mpv window overlapping multiple monitors (the last one is
selected).
Diffstat (limited to 'common/version.c')
0 files changed, 0 insertions, 0 deletions