implemented IPC subscribe for workspace event

This commit is contained in:
minus 2015-10-27 21:59:17 +01:00
parent eb847a1b1c
commit 9925554ea4
3 changed files with 112 additions and 32 deletions

View file

@ -13,6 +13,7 @@
#include "stringop.h"
#include "focus.h"
#include "util.h"
#include "ipc.h"
char *prev_workspace_name = NULL;
@ -221,5 +222,8 @@ bool workspace_switch(swayc_t *workspace) {
return false;
}
arrange_windows(workspace, -1, -1);
ipc_event_workspace(active_ws, workspace);
return true;
}