diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2021-11-22 19:44:22 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-21 13:13:16 +0100 |
commit | cd1a0aa29358cbc9f18517807cd9b329b67dd526 (patch) | |
tree | efae37ad1a6abb67a076f949e81e99831f9ed8a7 | |
parent | input/cursor: treat swipe begin as idle activity too (diff) | |
download | sway-cd1a0aa29358cbc9f18517807cd9b329b67dd526.tar.gz sway-cd1a0aa29358cbc9f18517807cd9b329b67dd526.tar.zst sway-cd1a0aa29358cbc9f18517807cd9b329b67dd526.zip |
treat fullscreen windows as 'tiled' for commands/focus
(cherry picked from commit b2ee964434b25a0ccbccb1486b027f69ef34acff)
-rw-r--r-- | sway/commands/focus.c | 3 |
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) { | |||
451 | return cmd_results_new(CMD_FAILURE, ""); | 451 | return cmd_results_new(CMD_FAILURE, ""); |
452 | } | 452 | } |
453 | struct sway_node *next_focus = NULL; | 453 | struct sway_node *next_focus = NULL; |
454 | if (container_is_floating(container)) { | 454 | if (container_is_floating(container) && |
455 | container->pending.fullscreen_mode == FULLSCREEN_NONE) { | ||
455 | next_focus = node_get_in_direction_floating(container, seat, direction); | 456 | next_focus = node_get_in_direction_floating(container, seat, direction); |
456 | } else { | 457 | } else { |
457 | next_focus = node_get_in_direction_tiling(container, seat, direction, descend); | 458 | next_focus = node_get_in_direction_tiling(container, seat, direction, descend); |