diff options
author | uint23 <[email protected]> | 2025-04-26 11:05:02 +0100 |
---|---|---|
committer | uint23 <[email protected]> | 2025-04-26 11:05:02 +0100 |
commit | 6216b7f0ed5d83ed7c6400a9a14c1bb0f70c4321 (patch) | |
tree | 62411b7fc5dca4e890fe68396f921a29ff223036 /src/sxwm.c | |
parent | df7b1650605d302e6bde0a36e446878fac974781 (diff) |
xinerama cleanup
Diffstat (limited to 'src/sxwm.c')
-rw-r--r-- | src/sxwm.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -27,6 +27,8 @@ #include <X11/Xproto.h> #include <X11/Xutil.h> +#include <X11/extensions/Xinerama.h> + #include "defs.h" void add_client(Window w); @@ -79,9 +81,6 @@ void xev_case(XEvent *xev); INIT_WORKSPACE #include "config.h" -#ifdef XINERAMA_SUPPORT -#include <X11/extensions/Xinerama.h> -#endif Atom atom_wm_delete; Atom atom_wm_strut_partial; @@ -1389,7 +1388,6 @@ update_monitors(void) XDefineCursor(dpy, scr_root, c_normal); } -#ifdef XINERAMA_SUPPORT if (XineramaIsActive(dpy)) { info = XineramaQueryScreens(dpy, &monsn); mons = malloc(sizeof *mons * monsn); @@ -1400,9 +1398,7 @@ update_monitors(void) mons[i].h = info[i].height; } XFree(info); - } else -#endif - { + } else { monsn = 1; mons = malloc(sizeof *mons); mons[0].x = 0; |