summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-27 22:14:20 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-27 22:14:20 -0400
commit6d2b455727f7e3df1fc7241a39694bd843a92ed1 (patch)
treeab2c6db115963d22715f454501ecee5c33a997fb
parentMerge pull request #789 from acrisci/bug/focus-parent-above-workspace (diff)
parentbugfix: set focus to workspace of an output (diff)
downloadsway-6d2b455727f7e3df1fc7241a39694bd843a92ed1.tar.gz
sway-6d2b455727f7e3df1fc7241a39694bd843a92ed1.tar.zst
sway-6d2b455727f7e3df1fc7241a39694bd843a92ed1.zip
Merge pull request #790 from acrisci/bug/switch-focus-workspace-output
bugfix: set focus to workspace of an output
-rw-r--r--sway/focus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c
index d2a1e0d6..c7737a1d 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -67,9 +67,11 @@ bool move_focus(enum movement_direction direction) {
67 swayc_t *new_view = get_swayc_in_direction(old_view, direction); 67 swayc_t *new_view = get_swayc_in_direction(old_view, direction);
68 if (!new_view) { 68 if (!new_view) {
69 return false; 69 return false;
70 } else if (new_view->type == C_ROOT || new_view->type == C_OUTPUT) { 70 } else if (new_view->type == C_ROOT) {
71 sway_log(L_DEBUG, "Not setting focus above the workspace level"); 71 sway_log(L_DEBUG, "Not setting focus above the workspace level");
72 return false; 72 return false;
73 } else if (new_view->type == C_OUTPUT) {
74 return set_focused_container(swayc_active_workspace_for(new_view));
73 } else if (direction == MOVE_PARENT) { 75 } else if (direction == MOVE_PARENT) {
74 return set_focused_container(new_view); 76 return set_focused_container(new_view);
75 } else if (config->mouse_warping) { 77 } else if (config->mouse_warping) {