|
|
@ -67,9 +67,11 @@ bool move_focus(enum movement_direction direction) {
|
|
|
|
swayc_t *new_view = get_swayc_in_direction(old_view, direction);
|
|
|
|
swayc_t *new_view = get_swayc_in_direction(old_view, direction);
|
|
|
|
if (!new_view) {
|
|
|
|
if (!new_view) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} else if (new_view->type == C_ROOT || new_view->type == C_OUTPUT) {
|
|
|
|
} else if (new_view->type == C_ROOT) {
|
|
|
|
sway_log(L_DEBUG, "Not setting focus above the workspace level");
|
|
|
|
sway_log(L_DEBUG, "Not setting focus above the workspace level");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
} else if (new_view->type == C_OUTPUT) {
|
|
|
|
|
|
|
|
return set_focused_container(swayc_active_workspace_for(new_view));
|
|
|
|
} else if (direction == MOVE_PARENT) {
|
|
|
|
} else if (direction == MOVE_PARENT) {
|
|
|
|
return set_focused_container(new_view);
|
|
|
|
return set_focused_container(new_view);
|
|
|
|
} else if (config->mouse_warping) {
|
|
|
|
} else if (config->mouse_warping) {
|
|
|
|