diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 09927a1a..f60c43b5 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -448,6 +448,20 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
448 | return; | 448 | return; |
449 | } | 449 | } |
450 | 450 | ||
451 | struct sway_container *last_workspace = last_focus; | ||
452 | if (last_workspace && last_workspace->type != C_WORKSPACE) { | ||
453 | last_workspace = container_parent(last_workspace, C_WORKSPACE); | ||
454 | } | ||
455 | struct sway_container *new_workspace = container; | ||
456 | if (new_workspace && new_workspace->type != C_WORKSPACE) { | ||
457 | new_workspace = container_parent(new_workspace, C_WORKSPACE); | ||
458 | } | ||
459 | |||
460 | if (last_workspace == new_workspace && last_workspace->fullscreen | ||
461 | && !container->sway_view->is_fullscreen) { | ||
462 | return; | ||
463 | } | ||
464 | |||
451 | struct sway_container *last_output = last_focus; | 465 | struct sway_container *last_output = last_focus; |
452 | if (last_output && last_output->type != C_OUTPUT) { | 466 | if (last_output && last_output->type != C_OUTPUT) { |
453 | last_output = container_parent(last_output, C_OUTPUT); | 467 | last_output = container_parent(last_output, C_OUTPUT); |