diff options
Diffstat (limited to 'src/event.c')
| -rw-r--r-- | src/event.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/event.c b/src/event.c index e42001e..62f35e2 100644 --- a/src/event.c +++ b/src/event.c @@ -450,15 +450,15 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t if (ps->root == ev->window) { // If desktop number property changes - if (ev->atom == ps->atoms->a_NET_CURRENT_DESKTOP) { - auto prop = x_get_prop(ps->c, ps->root, ps->atoms->a_NET_CURRENT_DESKTOP, - 1L, XCB_ATOM_CARDINAL, 32); - - // if (prop.nitems) { - // ps->root_desktop_switch_direction = ((int)*prop.c32) - ps->root_desktop_num; - // ps->root_desktop_num = (int)*prop.c32; - // } - } + // if (ev->atom == ps->atoms->a_NET_CURRENT_DESKTOP) { + // auto prop = x_get_prop(ps->c, ps->root, ps->atoms->a_NET_CURRENT_DESKTOP, + // 1L, XCB_ATOM_CARDINAL, 32); + + // if (prop.nitems) { + // ps->root_desktop_switch_direction = ((int)*prop.c32) - ps->root_desktop_num; + // ps->root_desktop_num = (int)*prop.c32; + // } + // } if (ps->o.use_ewmh_active_win && ps->atoms->a_NET_ACTIVE_WINDOW == ev->atom) { // to update focus |