summaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
authorLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-12 13:58:24 +0000
committerLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-21 21:51:20 +0300
commit976e48d79f46fbab02d7af0ae1b6804018774a63 (patch)
treef230178d62aff86bd83181b588e055aa7963d2a6 /sway/focus.c
parentRemove arrange_windows from post-render (diff)
downloadsway-976e48d79f46fbab02d7af0ae1b6804018774a63.tar.gz
sway-976e48d79f46fbab02d7af0ae1b6804018774a63.tar.zst
sway-976e48d79f46fbab02d7af0ae1b6804018774a63.zip
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) {
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;