mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
Notify IPC on workspace changes more frequently
This commit is contained in:
parent
e2cb5e5420
commit
7868e44d3f
@ -95,6 +95,8 @@ bool set_focused_container(swayc_t *c) {
|
|||||||
if (locked_container_focus || !c || !c->parent) {
|
if (locked_container_focus || !c || !c->parent) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
swayc_t *active_ws = swayc_active_workspace();
|
||||||
|
|
||||||
swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
|
swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
|
||||||
|
|
||||||
// Get workspace for c, get that workspaces current focused container.
|
// Get workspace for c, get that workspaces current focused container.
|
||||||
@ -133,6 +135,10 @@ bool set_focused_container(swayc_t *c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (active_ws != workspace) {
|
||||||
|
ipc_event_workspace(active_ws, workspace);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <wlc/wlc.h>
|
#include <wlc/wlc.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
#include "ipc-server.h"
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user