ewmh: correctly set _NET_ACTIVE_WINDOW

This commit is contained in:
Michael Stapelberg
2009-12-25 15:19:39 +01:00
parent 0641e6a1a3
commit e7e9e8e49d
7 changed files with 31 additions and 3 deletions

View File

@ -249,6 +249,7 @@ int main(int argc, char *argv[], char *env[]) {
REQUEST_ATOM(WM_STATE);
REQUEST_ATOM(WM_CLIENT_LEADER);
REQUEST_ATOM(_NET_CURRENT_DESKTOP);
REQUEST_ATOM(_NET_ACTIVE_WINDOW);
/* TODO: this has to be more beautiful somewhen */
int major, minor, error;
@ -412,6 +413,7 @@ int main(int argc, char *argv[], char *env[]) {
GET_ATOM(WM_STATE);
GET_ATOM(WM_CLIENT_LEADER);
GET_ATOM(_NET_CURRENT_DESKTOP);
GET_ATOM(_NET_ACTIVE_WINDOW);
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 */