ipc: add window::focus event

This commit is contained in:
Ian Fan 2018-07-13 17:16:32 +01:00
parent f0310933c8
commit dd1d6255f0

View File

@ -766,6 +766,10 @@ void seat_set_focus_warp(struct sway_seat *seat,
}
}
if (container->type == C_VIEW) {
ipc_event_window(container, "focus");
}
seat->has_focus = (container != NULL);
update_debug_tree();