event: Change the place of the wait

This commit is contained in:
Martin Duquesnoy
2008-11-24 00:19:11 +01:00
parent a212be81af
commit 5a510cbd66
2 changed files with 5 additions and 2 deletions

View File

@@ -367,6 +367,8 @@ unmapnotify(XUnmapEvent *ev)
void void
getevent(XEvent ev) getevent(XEvent ev)
{ {
int st;
switch (ev.type) switch (ev.type)
{ {
case ButtonPress: buttonpress(&ev.xbutton); break; case ButtonPress: buttonpress(&ev.xbutton); break;
@@ -382,5 +384,7 @@ getevent(XEvent ev)
case UnmapNotify: unmapnotify(&ev.xunmap); break; case UnmapNotify: unmapnotify(&ev.xunmap); break;
} }
wait(&st);
return; return;
} }

View File

@@ -113,7 +113,7 @@ mainloop(void)
{ {
fd_set fd; fd_set fd;
char sbuf[sizeof infobar->statustext], *p; char sbuf[sizeof infobar->statustext], *p;
int len, r, offset = 0, st; int len, r, offset = 0;
Bool readstdin = True; Bool readstdin = True;
XEvent ev; XEvent ev;
@@ -153,7 +153,6 @@ mainloop(void)
readstdin = False; readstdin = False;
} }
infobar_draw(); infobar_draw();
wait(&st);
} }
while(XPending(dpy)) while(XPending(dpy))
{ {