mirror of
https://github.com/vale981/yabar
synced 2025-03-04 17:11:38 -05:00
get current desktop in handler
This commit is contained in:
parent
8d0fef394b
commit
a1bd2673a1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue