diff options
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/focus.c b/sway/focus.c index ff064b72..97fa4b98 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -118,6 +118,10 @@ bool set_focused_container(swayc_t *c) { c = focused; } + if (c->type == C_VIEW) { + // dispatch a window event + ipc_event_window(c, "focus"); + } // update container focus from here to root, making necessary changes along // the way swayc_t *p = c; |