From 44e218574f96d46f36f6bd6e0b7625ae3c97593f Mon Sep 17 00:00:00 2001
From: Brian Ashworth <bosrsf04@gmail.com>
Date: Mon, 23 Jul 2018 15:40:05 -0400
Subject: Add missing checks to fix 2339

---
 sway/input/seat.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'sway/input/seat.c')

diff --git a/sway/input/seat.c b/sway/input/seat.c
index 273223db..fc9e54b6 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -628,6 +628,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
 
 	if (last_workspace && last_workspace == new_workspace
 			&& last_workspace->sway_workspace->fullscreen
+			&& container && container->type == C_VIEW
 			&& !container->sway_view->is_fullscreen) {
 		return;
 	}
-- 
cgit v1.2.3