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