diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-07-27 21:36:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-27 21:36:08 -0400 |
commit | 70e73d71db3b5234f1748eb89ad32a50e0ca7ac1 (patch) | |
tree | 65d901909525c6488bc4078904bde8bc3c2639b8 /sway | |
parent | ba8f0da9de3677fd3b0c1d171f5d9bd3b2b8d2a8 (diff) | |
parent | afc6ad64190bbe02bc02585dbcabd4d690e9e9fe (diff) |
Merge pull request #789 from acrisci/bug/focus-parent-above-workspace
bugfix: cmd focus parent don't set focus above ws
Diffstat (limited to 'sway')
-rw-r--r-- | sway/focus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/focus.c b/sway/focus.c index 9974ba6a..d2a1e0d6 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -67,6 +67,9 @@ bool move_focus(enum movement_direction direction) { swayc_t *new_view = get_swayc_in_direction(old_view, direction); if (!new_view) { return false; + } else if (new_view->type == C_ROOT || new_view->type == C_OUTPUT) { + sway_log(L_DEBUG, "Not setting focus above the workspace level"); + return false; } else if (direction == MOVE_PARENT) { return set_focused_container(new_view); } else if (config->mouse_warping) { |