diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-07-13 17:16:32 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-01 16:57:14 +0100 |
commit | dd1d6255f0e558f2d62e03f701440a57f65254b2 (patch) | |
tree | 996777d2bb7aa42a6c4df10532c8dffaaee2abfc | |
parent | f0310933c89ba062a13df0b319d65f0574445ab8 (diff) |
ipc: add window::focus event
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index a4a449e4..c85e9242 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -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(); |