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
getevent(XEvent ev)
{
int st;
switch (ev.type)
{
case ButtonPress: buttonpress(&ev.xbutton); break;
@ -382,5 +384,7 @@ getevent(XEvent ev)
case UnmapNotify: unmapnotify(&ev.xunmap); break;
}
wait(&st);
return;
}

View File

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