aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-10-31 20:35:56 +1100
committerallusive-dev <[email protected]>2023-10-31 20:35:56 +1100
commit5e8adc58af1899e30605f9e129931295b0b75711 (patch)
treec979de458fc289784d88c63e74906e3101ea8156 /src/event.c
parentUpdate README.md (diff)
downloadcompfy-1.2.1.tar.xz
compfy-1.2.1.zip
Setup errors for new deprecated settings1.2.1
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c18
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