aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-04-17 09:31:34 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-04-17 09:31:34 +1000
commitc685ef081f090d1e15428f55426e02f2274312d0 (patch)
treee4997c84099e962a0c00a8fea22be30964cecda3 /sway/input
parentbfd5834f4c1046c234ceaae212e65e045cd51460 (diff)
downloadsway-c685ef081f090d1e15428f55426e02f2274312d0.tar.xz
Create sway_workspace struct.
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seat.c4
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 @@
#include "sway/output.h"
#include "sway/tree/container.h"
#include "sway/tree/view.h"
+#include "sway/tree/workspace.h"
#include "log.h"
static void seat_device_destroy(struct sway_seat_device *seat_device) {
@@ -457,7 +458,8 @@ void seat_set_focus_warp(struct sway_seat *seat,
new_workspace = container_parent(new_workspace, C_WORKSPACE);
}
- if (last_workspace == new_workspace && last_workspace->fullscreen
+ if (last_workspace == new_workspace
+ && last_workspace->sway_workspace->fullscreen
&& !container->sway_view->is_fullscreen) {
return;
}