summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 6a0ad3776e..57ff565b2d 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -368,9 +368,9 @@ static void init_atoms(void)
void update_xinerama_info(void) {
xinerama_x = xinerama_y = 0;
#ifdef CONFIG_XINERAMA
- int screen = xinerama_screen;
- if (screen >= -1 && XineramaIsActive(mDisplay))
+ if (xinerama_screen >= -1 && XineramaIsActive(mDisplay))
{
+ int screen = xinerama_screen;
XineramaScreenInfo *screens;
int num_screens;