Initial work on window events

This commit is contained in:
Mykyta Holubakha 2016-07-12 13:58:24 +00:00
parent 095353d91d
commit 976e48d79f
7 changed files with 34 additions and 0 deletions

View file

@ -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;