Bugfix: client requests to focus switch workspaces
Patch status: superseded
Patch by Tony Crisci
Long description:
Allow client requests of type _NET_ACTIVE_WINDOW to switch workspaces. This allows task switchers like skippy-xd to work properly. http://standards.freedesktop.org/wm-spec/latest/ar01s03.html#idm140251368127856
To apply this patch, use:
curl http://cr.i3wm.org/patch/525/raw.patch | git am
b/src/handlers.c
| 17 |
@@ -702,8 +702,9 @@ static void handle_client_message(xcb_client_message_event_t *event) {
|
| 18 |
} |
| 19 |
|
| 20 |
Con *ws = con_get_workspace(con); |
| 21 |
- if (!workspace_is_visible(ws)) {
|
| 22 |
- DLOG("Workspace not visible, ignoring _NET_ACTIVE_WINDOW\n");
|
| 23 |
+ |
| 24 |
+ if (ws == NULL) {
|
| 25 |
+ DLOG("Window is not being managed, ignoring _NET_ACTIVE_WINDOW\n");
|
| 26 |
return; |
| 27 |
} |
| 28 |
|