diff options
-rw-r--r-- | dmenu.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -530,6 +530,10 @@ setup(void) { | |||
530 | y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh; | 530 | y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh; |
531 | mw = DisplayWidth(dc->dpy, screen); | 531 | mw = DisplayWidth(dc->dpy, screen); |
532 | } | 532 | } |
533 | inputw = MIN(inputw, mw/3); | ||
534 | promptw = prompt ? textw(dc, prompt) : 0; | ||
535 | match(); | ||
536 | |||
533 | /* menu window */ | 537 | /* menu window */ |
534 | wa.override_redirect = True; | 538 | wa.override_redirect = True; |
535 | wa.background_pixmap = ParentRelative; | 539 | wa.background_pixmap = ParentRelative; |
@@ -539,10 +543,7 @@ setup(void) { | |||
539 | DefaultVisual(dc->dpy, screen), | 543 | DefaultVisual(dc->dpy, screen), |
540 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); | 544 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); |
541 | 545 | ||
542 | resizedc(dc, mw, mh); | ||
543 | inputw = MIN(inputw, mw/3); | ||
544 | promptw = prompt ? textw(dc, prompt) : 0; | ||
545 | XMapRaised(dc->dpy, win); | 546 | XMapRaised(dc->dpy, win); |
547 | resizedc(dc, mw, mh); | ||
546 | drawmenu(); | 548 | drawmenu(); |
547 | match(); | ||
548 | } | 549 | } |