all repos — dmenu @ d78bcf247fe03e23e7980b246ccf5d57d256ecfc

my build of dmenu

simplified main event loop
Anselm R. Garbe arg@10kloc.org
Tue, 10 Oct 2006 19:15:06 +0200
commit

d78bcf247fe03e23e7980b246ccf5d57d256ecfc

parent

afaf66dc999fba8a5fa8269c600218609cda8b56

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M config.mkconfig.mk

@@ -1,5 +1,5 @@

# dmenu version -VERSION = 1.2 +VERSION = 1.3 # Customize below to fit your system
M main.cmain.c

@@ -356,7 +356,7 @@ drawmenu();

XSync(dpy, False); /* main event loop */ - while(running && !XNextEvent(dpy, &ev)) { + while(running && !XNextEvent(dpy, &ev)) switch (ev.type) { default: /* ignore all crap */ break;

@@ -368,7 +368,6 @@ if(ev.xexpose.count == 0)

drawmenu(); break; } - } /* cleanup */ while(allitems) {