summaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-21 14:59:57 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-21 14:59:57 -0400
commit464239f7ac11d32a6f10b8517b8410a2eb9b493a (patch)
tree96929d8f1b16ad0b5773b1776484caba858c77a5 /sway/focus.c
parentRemove arrange_windows from post-render (diff)
parentHandle transient_for (diff)
downloadsway-464239f7ac11d32a6f10b8517b8410a2eb9b493a.tar.gz
sway-464239f7ac11d32a6f10b8517b8410a2eb9b493a.tar.zst
sway-464239f7ac11d32a6f10b8517b8410a2eb9b493a.zip
Merge pull request #776 from Hummer12007/window-events
[RFC] Implement 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) {
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;