From 0eac290d54ea9d1cb5bf469f6aa381953b1c1089 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 21 Jul 2021 19:27:11 +0100 Subject: [PATCH] Handle alt + cursor button outside view --- src/cursor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cursor.c b/src/cursor.c index 8133725f..ec023aeb 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -275,6 +275,10 @@ static void handle_cursor_button_with_meta_key(struct view *view, uint32_t button, double lx, double ly) { + if (!view) { + return; + } + /* move */ if (button == BTN_LEFT) { interactive_begin(view, LAB_INPUT_STATE_MOVE, 0);