diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
commit | c685ef081f090d1e15428f55426e02f2274312d0 (patch) | |
tree | e4997c84099e962a0c00a8fea22be30964cecda3 /sway/input | |
parent | Feedback for fullscreen. (diff) | |
download | sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.gz sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.zst sway-c685ef081f090d1e15428f55426e02f2274312d0.zip |
Create sway_workspace struct.
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index f60c43b5..23b7ef76 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "sway/output.h" | 18 | #include "sway/output.h" |
19 | #include "sway/tree/container.h" | 19 | #include "sway/tree/container.h" |
20 | #include "sway/tree/view.h" | 20 | #include "sway/tree/view.h" |
21 | #include "sway/tree/workspace.h" | ||
21 | #include "log.h" | 22 | #include "log.h" |
22 | 23 | ||
23 | static void seat_device_destroy(struct sway_seat_device *seat_device) { | 24 | static void seat_device_destroy(struct sway_seat_device *seat_device) { |
@@ -457,7 +458,8 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
457 | new_workspace = container_parent(new_workspace, C_WORKSPACE); | 458 | new_workspace = container_parent(new_workspace, C_WORKSPACE); |
458 | } | 459 | } |
459 | 460 | ||
460 | if (last_workspace == new_workspace && last_workspace->fullscreen | 461 | if (last_workspace == new_workspace |
462 | && last_workspace->sway_workspace->fullscreen | ||
461 | && !container->sway_view->is_fullscreen) { | 463 | && !container->sway_view->is_fullscreen) { |
462 | return; | 464 | return; |
463 | } | 465 | } |