aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bakker <ab@alexbakker.me>2018-09-25 22:19:46 +0200
committerAlexander Bakker <ab@alexbakker.me>2018-09-25 22:19:46 +0200
commitd129108cddc485299443d0b98c3bdf3f9839aa1c (patch)
tree0bf04368b0f6972e343aa9eea64075d5fca5f102
parent08815f9cfb4d0e93d69997cb229333326212744b (diff)
Add a missing null check for moving tiling containers
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 5111e8e5..aa0e07f5 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -897,7 +897,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
// Handle moving a tiling container
if (config->tiling_drag && mod_pressed && state == WLR_BUTTON_PRESSED &&
- !is_floating_or_child && !cont->is_fullscreen) {
+ !is_floating_or_child && cont && !cont->is_fullscreen) {
seat_pointer_notify_button(seat, time_msec, button, state);
seat_begin_move_tiling(seat, cont, button);
return;