summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
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) {
369 suspend_workspace_cleanup = true; 369 suspend_workspace_cleanup = true;
370 370
371 if (newview) { 371 if (newview) {
372 ipc_event_window(newview, "new");
372 set_focused_container(newview); 373 set_focused_container(newview);
373 swayc_t *output = swayc_parent_by_type(newview, C_OUTPUT); 374 swayc_t *output = swayc_parent_by_type(newview, C_OUTPUT);
374 arrange_windows(output, -1, -1); 375 arrange_windows(output, -1, -1);
@@ -461,6 +462,7 @@ static void handle_view_destroyed(wlc_handle handle) {
461 } 462 }
462 463
463 arrange_windows(parent, -1, -1); 464 arrange_windows(parent, -1, -1);
465 ipc_event_window(parent, "close");
464 } else { 466 } else {
465 // Is it unmanaged? 467 // Is it unmanaged?
466 int i; 468 int i;
@@ -555,6 +557,7 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
555 } else if (c->border_type == B_NORMAL) { 557 } else if (c->border_type == B_NORMAL) {
556 update_view_border(c); 558 update_view_border(c);
557 } 559 }
560 ipc_event_window(c, "title");
558 } 561 }
559 } 562 }
560 } 563 }