[hackers] [dmenu] match first || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sun, 15 May 2011 15:21:30 +0200 (CEST)

changeset: 405:db708f8b425f
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sun May 15 14:21:00 2011 +0100
files: dmenu.c
description:
match first

diff -r f4b8a0b362b6 -r db708f8b425f dmenu.c
--- a/dmenu.c Sun May 15 14:13:31 2011 +0100
+++ b/dmenu.c Sun May 15 14:21:00 2011 +0100
@@ -530,6 +530,10 @@
                 y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh;
                 mw = DisplayWidth(dc->dpy, screen);
         }
+ inputw = MIN(inputw, mw/3);
+ promptw = prompt ? textw(dc, prompt) : 0;
+ match();
+
         /* menu window */
         wa.override_redirect = True;
         wa.background_pixmap = ParentRelative;
@@ -539,10 +543,7 @@
                             DefaultVisual(dc->dpy, screen),
                             CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
 
+ XMapRaised(dc->dpy, win);
         resizedc(dc, mw, mh);
- inputw = MIN(inputw, mw/3);
- promptw = prompt ? textw(dc, prompt) : 0;
- XMapRaised(dc->dpy, win);
         drawmenu();
- match();
 }
Received on Sun May 15 2011 - 15:21:30 CEST

This archive was generated by hypermail 2.2.0 : Sun May 15 2011 - 15:24:05 CEST