diff options
author | wm4 <wm4@nowhere> | 2014-05-19 22:09:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-19 22:09:26 +0200 |
commit | ac66bcc25955b41f71202273490d4073a013a7db (patch) | |
tree | a1c9038d10c673c76e7bde595a665780818399f0 | |
parent | 5f6406f450279532c34229df05f6a9fc6c82d4df (diff) | |
download | mpv-ac66bcc25955b41f71202273490d4073a013a7db.tar.bz2 mpv-ac66bcc25955b41f71202273490d4073a013a7db.tar.xz |
x11: unbreak build without xinerama
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 7d96588fb4..adfbd950a0 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -382,6 +382,7 @@ static void vo_x11_get_bounding_monitors(struct vo_x11_state *x11, long b[4]) { //top bottom left right b[0] = b[1] = b[2] = b[3] = 0; +#if HAVE_XINERAMA int num_screens = 0; XineramaScreenInfo *screens = XineramaQueryScreens(x11->display, &num_screens); if (!screens) @@ -398,6 +399,7 @@ static void vo_x11_get_bounding_monitors(struct vo_x11_state *x11, long b[4]) b[3] = n; } XFree(screens); +#endif } int vo_x11_init(struct vo *vo) |