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) { | |||
118 | c = focused; | 118 | c = focused; |
119 | } | 119 | } |
120 | 120 | ||
121 | if (c->type == C_VIEW) { | ||
122 | // dispatch a window event | ||
123 | ipc_event_window(c, "focus"); | ||
124 | } | ||
121 | // update container focus from here to root, making necessary changes along | 125 | // update container focus from here to root, making necessary changes along |
122 | // the way | 126 | // the way |
123 | swayc_t *p = c; | 127 | swayc_t *p = c; |