diff options
author | sabetts <sabetts> | 2006-03-16 00:33:34 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-03-16 00:33:34 +0000 |
commit | 9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6 (patch) | |
tree | c6b2230a429ae887eed80487d1833c1eec129447 /src/xinerama.c | |
parent | 0ad6d8b36f975c43f37b0ad07112c2cd31003417 (diff) | |
download | ratpoison-9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6.zip |
remove tabs and trailing whitespace.
Diffstat (limited to 'src/xinerama.c')
-rw-r--r-- | src/xinerama.c | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/src/xinerama.c b/src/xinerama.c index 3c94d56..ab3db32 100644 --- a/src/xinerama.c +++ b/src/xinerama.c @@ -36,48 +36,48 @@ static XineramaScreenInfo *xine_screens = NULL; void init_xinerama() { - int evbase, errbase, major, minor; - - rp_have_xinerama = 0; + int evbase, errbase, major, minor; -#ifdef XINERAMA - if (xine_screens) XFree(xine_screens); + rp_have_xinerama = 0; - if (!XineramaQueryExtension(dpy, &evbase, &errbase)) { - return; - } +#ifdef XINERAMA + if (xine_screens) XFree(xine_screens); + + if (!XineramaQueryExtension(dpy, &evbase, &errbase)) { + return; + } - if (!XineramaQueryVersion(dpy, &major, &minor) != Success) { - return; - } + if (!XineramaQueryVersion(dpy, &major, &minor) != Success) { + return; + } - if (major != 1) { - fprintf (stderr, "Warning: Xinerama version %d.%d not supported\n", major, minor); - return; - } - - if (!XineramaIsActive(dpy)) { - return; - } + if (major != 1) { + fprintf (stderr, "Warning: Xinerama version %d.%d not supported\n", major, minor); + return; + } - xine_screens = XineramaQueryScreens(dpy, &xine_screen_count); - if ((xine_screens == NULL) || (xine_screen_count < 2)) { - return; - } + if (!XineramaIsActive(dpy)) { + return; + } - rp_have_xinerama = 1; + xine_screens = XineramaQueryScreens(dpy, &xine_screen_count); + if ((xine_screens == NULL) || (xine_screen_count < 2)) { + return; + } + + rp_have_xinerama = 1; #endif } void xinerama_get_screen_info(int sc, int *x, int *y, int *w, int *h) { #ifdef XINERAMA - if ((sc < xine_screen_count) && (sc >= 0)) { - *x = xine_screens[sc].x_org; - *y = xine_screens[sc].y_org; - *w = xine_screens[sc].width; - *h = xine_screens[sc].height; - } + if ((sc < xine_screen_count) && (sc >= 0)) { + *x = xine_screens[sc].x_org; + *y = xine_screens[sc].y_org; + *w = xine_screens[sc].width; + *h = xine_screens[sc].height; + } #endif } @@ -85,10 +85,9 @@ void free_xinerama() { #ifdef XINERAMA - if (xine_screens) { - XFree(xine_screens); - } - rp_have_xinerama = 0; + if (xine_screens) { + XFree(xine_screens); + } + rp_have_xinerama = 0; #endif } - |