summaryrefslogtreecommitdiff
path: root/sway/focus.c
diff options
context:
space:
mode:
authorMykyta Holubakha <[email protected]>2016-07-12 13:58:24 +0000
committerMykyta Holubakha <[email protected]>2016-07-21 21:51:20 +0300
commit976e48d79f46fbab02d7af0ae1b6804018774a63 (patch)
treef230178d62aff86bd83181b588e055aa7963d2a6 /sway/focus.c
parent095353d91db1467cb0366cfe68773d679d029370 (diff)
Initial work on window events
Diffstat (limited to 'sway/focus.c')
-rw-r--r--sway/focus.c4
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;