diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-07-18 21:52:15 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-01 16:57:15 +0100 |
commit | b2ac234569ff98de583d9e7755526cadf960f772 (patch) | |
tree | 850c9ca131a2d41efb3ead1968bdb9bb734cef03 /sway/tree/layout.c | |
parent | ipc: add tick event (diff) | |
download | sway-b2ac234569ff98de583d9e7755526cadf960f772.tar.gz sway-b2ac234569ff98de583d9e7755526cadf960f772.tar.zst sway-b2ac234569ff98de583d9e7755526cadf960f772.zip |
ipc: fix workspace::focus event behaviour
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index a0f9b6de..9fbbccaf 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -598,7 +598,7 @@ void container_move(struct sway_container *container, | |||
598 | next_ws = container_parent(next_ws, C_WORKSPACE); | 598 | next_ws = container_parent(next_ws, C_WORKSPACE); |
599 | } | 599 | } |
600 | if (last_ws && next_ws && last_ws != next_ws) { | 600 | if (last_ws && next_ws && last_ws != next_ws) { |
601 | ipc_event_workspace(last_ws, container, "focus"); | 601 | ipc_event_workspace(last_ws, next_ws, "focus"); |
602 | workspace_detect_urgent(last_ws); | 602 | workspace_detect_urgent(last_ws); |
603 | workspace_detect_urgent(next_ws); | 603 | workspace_detect_urgent(next_ws); |
604 | } | 604 | } |