mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Initial work on window events
This commit is contained in:
parent
095353d91d
commit
976e48d79f
7 changed files with 34 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue