summaryrefslogtreecommitdiff
path: root/sway/handlers.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/handlers.c
parent095353d91db1467cb0366cfe68773d679d029370 (diff)
Initial work on window events
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index b95a6e65..abed8cd7 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -369,6 +369,7 @@ static bool handle_view_created(wlc_handle handle) {
suspend_workspace_cleanup = true;
if (newview) {
+ ipc_event_window(newview, "new");
set_focused_container(newview);
swayc_t *output = swayc_parent_by_type(newview, C_OUTPUT);
arrange_windows(output, -1, -1);
@@ -461,6 +462,7 @@ static void handle_view_destroyed(wlc_handle handle) {
}
arrange_windows(parent, -1, -1);
+ ipc_event_window(parent, "close");
} else {
// Is it unmanaged?
int i;
@@ -555,6 +557,7 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
} else if (c->border_type == B_NORMAL) {
update_view_border(c);
}
+ ipc_event_window(c, "title");
}
}
}