diff options
Diffstat (limited to 'src/event.c')
| -rw-r--r-- | src/event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.c b/src/event.c index beec195..e42001e 100644 --- a/src/event.c +++ b/src/event.c @@ -454,10 +454,10 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t 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 (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) { |