]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Handle alt + cursor button outside view
authorJohan Malm <jgm323@gmail.com>
Wed, 21 Jul 2021 18:27:11 +0000 (19:27 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 21 Jul 2021 18:27:11 +0000 (19:27 +0100)
src/cursor.c

index 8133725f6161646113aaba5874018e16e69972d1..ec023aeb5a89026022e44d19e9473c58364bec3e 100644 (file)
@@ -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);