mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
xwm: dont flush if no events
This commit is contained in:
parent
b443b9a998
commit
d6a1e6fd79
1 changed files with 4 additions and 1 deletions
|
|
@ -739,7 +739,10 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) {
|
||||||
free(event);
|
free(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
xcb_flush(xwm->xcb_conn);
|
if (count) {
|
||||||
|
xcb_flush(xwm->xcb_conn);
|
||||||
|
}
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue