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