summaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
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 02e61ac2..b94dcbc7 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -120,6 +120,10 @@ bool set_focused_container(swayc_t *c) {
120 // dispatch a window event 120 // dispatch a window event
121 ipc_event_window(c, "focus"); 121 ipc_event_window(c, "focus");
122 } 122 }
123
124 // update the global pointer
125 current_focus = c;
126
123 // update container focus from here to root, making necessary changes along 127 // update container focus from here to root, making necessary changes along
124 // the way 128 // the way
125 swayc_t *p = c; 129 swayc_t *p = c;