aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r--sway/input/seatop_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 68c617e4..088ba545 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -59,7 +59,7 @@ static bool edge_is_external(struct sway_container *cont, enum wlr_edges edge) {
59 59
60static enum wlr_edges find_edge(struct sway_container *cont, 60static enum wlr_edges find_edge(struct sway_container *cont,
61 struct wlr_surface *surface, struct sway_cursor *cursor) { 61 struct wlr_surface *surface, struct sway_cursor *cursor) {
62 if (!cont->view || cont->view->surface != surface) { 62 if (!cont->view || (surface && cont->view->surface != surface)) {
63 return WLR_EDGE_NONE; 63 return WLR_EDGE_NONE;
64 } 64 }
65 if (cont->border == B_NONE || !cont->border_thickness || 65 if (cont->border == B_NONE || !cont->border_thickness ||