]> git.sur5r.net Git - i3/i3/commitdiff
Send the workspace focus change event.
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Sat, 20 Nov 2010 22:04:01 +0000 (20:04 -0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Nov 2010 20:36:28 +0000 (21:36 +0100)
src/workspace.c

index e13faa607f991b541b830644969bef7a14897cb5..47a05eb85316c1309718ef4d5b6d3f8d6314dd0c 100644 (file)
@@ -216,6 +216,8 @@ void workspace_show(const char *num) {
     con_focus(next);
     workspace->fullscreen_mode = CF_OUTPUT;
     LOG("focused now = %p / %s\n", focused, focused->name);
+
+    ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"focus\"}");
 #if 0
 
         /* Check if the workspace has not been used yet */