aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-11-22 19:44:22 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-11-22 19:44:22 +0100
commit67ffe574ce47e117896ea09903c38fcc85c9b7ec (patch)
treeefae37ad1a6abb67a076f949e81e99831f9ed8a7
parentc8df4a191bc3a4cef142a8052bfd93e3b1302b68 (diff)
treat fullscreen windows as 'tiled' for commands/focus
(cherry picked from commit b2ee964434b25a0ccbccb1486b027f69ef34acff)
-rw-r--r--sway/commands/focus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c
index ceb43d45..b8d28480 100644
--- a/sway/commands/focus.c
+++ b/sway/commands/focus.c
@@ -451,7 +451,8 @@ struct cmd_results *cmd_focus(int argc, char **argv) {
return cmd_results_new(CMD_FAILURE, "");
}
struct sway_node *next_focus = NULL;
- if (container_is_floating(container)) {
+ if (container_is_floating(container) &&
+ container->pending.fullscreen_mode == FULLSCREEN_NONE) {
next_focus = node_get_in_direction_floating(container, seat, direction);
} else {
next_focus = node_get_in_direction_tiling(container, seat, direction, descend);