diff options
author | Zandr Martin <[email protected]> | 2016-09-17 15:54:45 -0500 |
---|---|---|
committer | Zandr Martin <[email protected]> | 2016-09-17 15:54:45 -0500 |
commit | e18b7cdfa920d536e4911a7ccbc2d6da5ae759f4 (patch) | |
tree | 8d64bd01413c08c5250085e8666cb4bef75efc97 /sway/focus.c | |
parent | 75f82808e2e5e4950d436ff6d30a58ac9fabd599 (diff) |
add global `current_focus` pointer
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/focus.c b/sway/focus.c index 02e61ac2..b94dcbc7 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -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; |