From 976e48d79f46fbab02d7af0ae1b6804018774a63 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Tue, 12 Jul 2016 13:58:24 +0000 Subject: Initial work on window events --- sway/handlers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/handlers.c') 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"); } } } -- cgit v1.2.3