diff options
author | okan <okan> | 2012-07-16 01:36:30 +0000 |
---|---|---|
committer | okan <okan> | 2012-07-16 01:36:30 +0000 |
commit | e42d1c7f01e06665a3e6e763685e47b965e7b0ae (patch) | |
tree | 40a1093ab394b520d41ebc224565eb8d85c9db9c /screen.c | |
parent | 0e8815dfb02f38a622d71ea3eb5644e6d5b8fb90 (diff) | |
download | cwm-e42d1c7f01e06665a3e6e763685e47b965e7b0ae.tar.gz cwm-e42d1c7f01e06665a3e6e763685e47b965e7b0ae.tar.xz cwm-e42d1c7f01e06665a3e6e763685e47b965e7b0ae.zip |
move the HasXinerama check into screen_find_xinerama and simplify logic;
moves closer to logic in menu code.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/screen.c b/screen.c index 07f1731..29d720e 100644 --- a/screen.c +++ b/screen.c @@ -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 && |