return DefaultScreen instead of 0

This commit is contained in:
Julien Danjou 2007-09-28 11:41:03 +02:00
parent 6efc6de67e
commit 9692e398d5
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ get_display_info(Display *disp, int screen, Statusbar *statusbar)
return si; return si;
} }
/** Return the Xinerama screen number where the window is placed /** Return the Xinerama screen number where the coordinates belongs to
* \param disp Display ref * \param disp Display ref
* \param x x coordinate of the window * \param x x coordinate of the window
* \param y y coordinate of the window * \param y y coordinate of the window
@ -105,7 +105,7 @@ get_screen_bycoord(Display *disp, int x, int y)
/* don't waste our time */ /* don't waste our time */
if(!XineramaIsActive(disp)) if(!XineramaIsActive(disp))
return 0; return DefaultScreen(disp);
si = get_screen_info(disp, 0, NULL, &screen_number); si = get_screen_info(disp, 0, NULL, &screen_number);
@ -118,7 +118,7 @@ get_screen_bycoord(Display *disp, int x, int y)
} }
XFree(si); XFree(si);
return 0; return DefaultScreen(disp);
} }
/** Return the actual screen count /** Return the actual screen count