aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-08-05 07:48:23 -0400
committerGitHub <noreply@github.com>2016-08-05 07:48:23 -0400
commit072984de9e5b74f6fcdb2350d508844b92ad7e7e (patch)
treef7545e019692feae1c8565f2b92d13c5c1a383be
parent2a8cc8645bed6ed314bc79103628b09a0464551a (diff)
parentaa292db8d1000785d743c41552d4a27e8a2f5595 (diff)
downloadsway-072984de9e5b74f6fcdb2350d508844b92ad7e7e.tar.xz
Merge pull request #838 from thejan2009/bug/workspace-switch-bug
Fix switch to prev ws on handle_view_created
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 6d35f8a2..846d0005 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -410,7 +410,7 @@ static bool handle_view_created(wlc_handle handle) {
}
wlc_view_set_mask(handle, VISIBLE);
- if (return_to_workspace && current_ws) {
+ if (return_to_workspace && current_ws != swayc_active_workspace()) {
// we were on one workspace, switched to another to add this view,
// now let's return to where we were
workspace_switch(current_ws);