summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 7145aaf537..00ac963664 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -379,14 +379,14 @@ void update_xinerama_info(void) {
int num_screens;
screens = XineramaQueryScreens(mDisplay, &num_screens);
- for (screen = num_screens - 1; screen > 0; screen--) {
- int left = screens[screen].x_org;
- int right = left + screens[screen].width;
- int top = screens[screen].y_org;
- int bottom = top + screens[screen].height;
- if (left <= x && x <= right && top <= y && y <= bottom)
- break;
- }
+ for (screen = num_screens - 1; screen > 0; screen--) {
+ int left = screens[screen].x_org;
+ int right = left + screens[screen].width;
+ int top = screens[screen].y_org;
+ int bottom = top + screens[screen].height;
+ if (left <= x && x <= right && top <= y && y <= bottom)
+ break;
+ }
if (screen < 0)
screen = 0;
vo_screenwidth = screens[screen].width;