Fix panel not flushing yutani queue

This commit is contained in:
K. Lange 2018-04-27 22:13:16 +09:00 committed by Kevin Lange
parent d02eda3e06
commit 12cc4bac7e

View File

@ -942,8 +942,8 @@ int main (int argc, char ** argv) {
if (index == 0) {
/* Respond to Yutani events */
yutani_msg_t * m = yutani_poll(yctx);
while (m) {
menu_process_event(yctx, m);
if (m) {
switch (m->type) {
/* New window information is available */
case YUTANI_MSG_NOTIFY:
@ -974,6 +974,7 @@ int main (int argc, char ** argv) {
break;
}
free(m);
m = yutani_poll_async(yctx);
}
} else {
struct timeval now;