ewmh: correctly set _NET_CURRENT_DESKTOP to the number of the active workspace

This commit is contained in:
Michael Stapelberg
2009-12-25 15:05:17 +01:00
parent ba82a3e63b
commit 0641e6a1a3
6 changed files with 62 additions and 2 deletions

View File

@ -248,6 +248,7 @@ int main(int argc, char *argv[], char *env[]) {
REQUEST_ATOM(UTF8_STRING);
REQUEST_ATOM(WM_STATE);
REQUEST_ATOM(WM_CLIENT_LEADER);
REQUEST_ATOM(_NET_CURRENT_DESKTOP);
/* TODO: this has to be more beautiful somewhen */
int major, minor, error;
@ -410,6 +411,7 @@ int main(int argc, char *argv[], char *env[]) {
GET_ATOM(UTF8_STRING);
GET_ATOM(WM_STATE);
GET_ATOM(WM_CLIENT_LEADER);
GET_ATOM(_NET_CURRENT_DESKTOP);
xcb_property_set_handler(&prophs, atoms[_NET_WM_WINDOW_TYPE], UINT_MAX, handle_window_type, NULL);
/* TODO: In order to comply with EWMH, we have to watch _NET_WM_STRUT_PARTIAL */