mirror of
https://github.com/swaywm/sway.git
synced 2026-05-01 06:46:25 -04:00
Merge bc76fdbd9d into aca9f6b2a2
This commit is contained in:
commit
bf51941546
6 changed files with 20 additions and 2 deletions
|
|
@ -202,6 +202,7 @@ void bar_run(struct bar *bar) {
|
|||
render(output, bar->config, bar->status);
|
||||
window_render(output->window);
|
||||
wl_display_flush(output->registry->display);
|
||||
ipc_send_arrange_command();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,12 @@
|
|||
#include "bar/config.h"
|
||||
#include "bar/ipc.h"
|
||||
|
||||
void ipc_send_arrange_command() {
|
||||
char *cmd = strdup("");
|
||||
uint32_t len = strlen(cmd);
|
||||
ipc_single_command(swaybar.ipc_socketfd, IPC_ARRANGE_LAYOUT, cmd, &len);
|
||||
}
|
||||
|
||||
void ipc_send_workspace_command(const char *workspace_name) {
|
||||
uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue