From: Johan Malm Date: Wed, 21 Jul 2021 18:27:11 +0000 (+0100) Subject: Handle alt + cursor button outside view X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=0eac290d54ea9d1cb5bf469f6aa381953b1c1089;p=proto%2Flabwc.git Handle alt + cursor button outside view --- 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);