similiar change as in dwm
This commit is contained in:
parent
88efbf3dd1
commit
698ec259af
9
dmenu.c
9
dmenu.c
@ -587,11 +587,12 @@ run(void) {
|
|||||||
void
|
void
|
||||||
setup(Bool topbar) {
|
setup(Bool topbar) {
|
||||||
int i, j, x, y;
|
int i, j, x, y;
|
||||||
XModifierKeymap *modmap;
|
|
||||||
XSetWindowAttributes wa;
|
|
||||||
#if XINERAMA
|
#if XINERAMA
|
||||||
|
int n;
|
||||||
XineramaScreenInfo *info = NULL;
|
XineramaScreenInfo *info = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
XModifierKeymap *modmap;
|
||||||
|
XSetWindowAttributes wa;
|
||||||
|
|
||||||
/* init modifier map */
|
/* init modifier map */
|
||||||
modmap = XGetModifierMapping(dpy);
|
modmap = XGetModifierMapping(dpy);
|
||||||
@ -618,10 +619,8 @@ setup(Bool topbar) {
|
|||||||
/* menu window geometry */
|
/* menu window geometry */
|
||||||
mh = dc.font.height + 2;
|
mh = dc.font.height + 2;
|
||||||
#if XINERAMA
|
#if XINERAMA
|
||||||
if(XineramaIsActive(dpy)) {
|
if(XineramaIsActive(dpy) && (info = XineramaQueryScreens(dpy, &n))) {
|
||||||
int n;
|
|
||||||
i = 0;
|
i = 0;
|
||||||
info = XineramaQueryScreens(dpy, &n);
|
|
||||||
if(n > 1) {
|
if(n > 1) {
|
||||||
int di;
|
int di;
|
||||||
unsigned int dui;
|
unsigned int dui;
|
||||||
|
Loading…
Reference in New Issue
Block a user