changeset: 270:644b0798fccc
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Fri Jul 18 20:20:19 2008 +0100
files: dmenu.c
description:
similiar change as in dwm
diff -r cdfd63d89c09 -r 644b0798fccc dmenu.c
--- a/dmenu.c Thu Jul 17 17:40:42 2008 +0100
+++ b/dmenu.c Fri Jul 18 20:20:19 2008 +0100
@@ -587,11 +587,12 @@
void
setup(Bool topbar) {
int i, j, x, y;
+#if XINERAMA
+ int n;
+ XineramaScreenInfo *info = NULL;
+#endif
XModifierKeymap *modmap;
XSetWindowAttributes wa;
-#if XINERAMA
- XineramaScreenInfo *info = NULL;
-#endif
/* init modifier map */
modmap = XGetModifierMapping(dpy);
@@ -618,10 +619,8 @@
/* menu window geometry */
mh = dc.font.height + 2;
#if XINERAMA
- if(XineramaIsActive(dpy)) {
- int n;
+ if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) {
i = 0;
- info = XineramaQueryScreens(dpy, &n);
if(n > 1) {
int di;
unsigned int dui;
Received on Fri Jul 18 2008 - 19:20:24 UTC
This archive was generated by hypermail 2.2.0 : Fri Jul 18 2008 - 19:24:06 UTC