event: Change the place of the wait
This commit is contained in:
parent
a212be81af
commit
5a510cbd66
@ -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;
|
||||
}
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user