summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorslatchurie <slatchurie@gmail.com>2018-11-01 02:00:03 +0100
committerwm4 <1387750+wm4@users.noreply.github.com>2019-09-21 15:36:16 +0200
commit1591ccfff5871ef581d1d2992e9c517f29aaf301 (patch)
treed1da41ba2aad3d01aafb6eeea7300bf83c6f2937 /video/out/x11_common.h
parentffe89415fec9ccfee5647dc473ae570591fa4c57 (diff)
downloadmpv-1591ccfff5871ef581d1d2992e9c517f29aaf301.tar.bz2
mpv-1591ccfff5871ef581d1d2992e9c517f29aaf301.tar.xz
x11: fix ICC profiling for multiple monitors
To find the correct ICC profile X atom, the screen number was calculated directly from the xrandr order of the screens. But if a primary screen is set, it should be the first Xinerama screen, even if it is not the first xrandr screen. Calculate the the proper atom id for each screen.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index ca01f61b0c..730b83ace8 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -44,6 +44,7 @@ struct xrandr_display {
double fps;
char *name;
bool overlaps;
+ int atom_id;
};
struct vo_x11_state {