swap em round

This commit is contained in:
Dylan Araps 2020-07-26 15:19:04 +03:00
parent aae3efc546
commit 710659f788
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -80,7 +80,7 @@ void event_notify_destroy(xcb_generic_event_t *ev) {
void event_notify_enter(xcb_generic_event_t *ev) { void event_notify_enter(xcb_generic_event_t *ev) {
xcb_enter_notify_event_t *e = (xcb_enter_notify_event_t *)ev; xcb_enter_notify_event_t *e = (xcb_enter_notify_event_t *)ev;
if (e->event == scr->root || !e->event) { if (!e->event || e->event == scr->root) {
return; return;
} }
@ -94,7 +94,7 @@ void event_notify_motion(xcb_generic_event_t *ev) {
xcb_get_geometry_reply_t *geom; xcb_get_geometry_reply_t *geom;
uint32_t values[3]; uint32_t values[3];
if (motion_win == scr->root || !motion_win) { if (!motion_win || motion_win == scr->root) {
return; return;
} }