mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
add global current_focus pointer
This commit is contained in:
parent
75f82808e2
commit
e18b7cdfa9
3 changed files with 17 additions and 10 deletions
|
|
@ -120,6 +120,10 @@ bool set_focused_container(swayc_t *c) {
|
|||
// dispatch a window event
|
||||
ipc_event_window(c, "focus");
|
||||
}
|
||||
|
||||
// update the global pointer
|
||||
current_focus = c;
|
||||
|
||||
// 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