mirror of
https://github.com/swaywm/sway.git
synced 2026-01-01 11:08:28 -05:00
implemented IPC subscribe for workspace event
This commit is contained in:
parent
eb847a1b1c
commit
9925554ea4
3 changed files with 112 additions and 32 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue