mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
swap em round
This commit is contained in:
parent
aae3efc546
commit
710659f788
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user