move the HasXinerama check into screen_find_xinerama and simplify logic;

moves closer to logic in menu code.
This commit is contained in:
okan
2012-07-16 01:36:30 +00:00
parent 0e8815dfb0
commit e42d1c7f01
2 changed files with 28 additions and 34 deletions

View File

@ -105,6 +105,9 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y)
XineramaScreenInfo *info;
int i;
if (HasXinerama = 0)
return (NULL);
for (i = 0; i < sc->xinerama_no; i++) {
info = &sc->xinerama[i];
if (x >= info->x_org && x < info->x_org + info->width &&