summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorMykyta Holubakha <[email protected]>2016-07-12 13:58:24 +0000
committerMykyta Holubakha <[email protected]>2016-07-21 21:51:20 +0300
commit976e48d79f46fbab02d7af0ae1b6804018774a63 (patch)
treef230178d62aff86bd83181b588e055aa7963d2a6 /sway/commands.c
parent095353d91db1467cb0366cfe68773d679d029370 (diff)
Initial work on window events
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index aaacf0fc..5cf93c53 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -679,6 +679,7 @@ static struct cmd_results *cmd_floating(int argc, char **argv) {
view->width = view->height = 0;
arrange_windows(swayc_active_workspace(), -1, -1);
remove_view_from_scratchpad(view);
+ ipc_event_window(view, "floating");
}
set_focused_container(view);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
@@ -2495,6 +2496,7 @@ static struct cmd_results *cmd_fullscreen(int argc, char **argv) {
arrange_windows(container, -1, -1);
workspace->fullscreen = NULL;
}
+ ipc_event_window(container, "fullscreen_mode");
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}