From a1bd2673a18fe77dade3144d04827d804bc874fb Mon Sep 17 00:00:00 2001 From: NBonaparte <98007b33@opayq.com> Date: Tue, 11 Apr 2017 12:42:54 -0700 Subject: [PATCH] get current desktop in handler --- src/ya_exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ya_exec.c b/src/ya_exec.c index 2b2fb0f..be9dbf2 100644 --- a/src/ya_exec.c +++ b/src/ya_exec.c @@ -583,7 +583,8 @@ void ya_handle_prop_notify(xcb_property_notify_event_t *ep) { //Same window, but title changed. Therefore don't return. } else if (ep->atom == ya.ewmh->_NET_CURRENT_DESKTOP) { - //Don't return, needed for workspaces + xcb_get_property_cookie_t ws_ck = xcb_ewmh_get_current_desktop(ya.ewmh, 0); + xcb_ewmh_get_current_desktop_reply(ya.ewmh, ws_ck, &ya.curws, NULL); } else { return;