]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Update consumed_by_frame_context for LAB_SSD_ALL
authorSimon Long <simon@raspberrypi.com>
Thu, 2 May 2024 10:00:23 +0000 (11:00 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 19 May 2024 21:17:04 +0000 (22:17 +0100)
src/input/cursor.c

index 626caeab329a9a361dfcb42704da3f1d6788c83c..596ea386ee0f65194204d0119439d550a1760222 100644 (file)
@@ -829,12 +829,15 @@ handle_release_mousebinding(struct server *server,
                                         */
                                        consumed_by_frame_context |=
                                                mousebind->context == LAB_SSD_FRAME;
+                                       consumed_by_frame_context |=
+                                               mousebind->context == LAB_SSD_ALL;
                                }
                                continue;
                        default:
                                continue;
                        }
                        consumed_by_frame_context |= mousebind->context == LAB_SSD_FRAME;
+                       consumed_by_frame_context |= mousebind->context == LAB_SSD_ALL;
                        actions_run(ctx->view, server, &mousebind->actions,
                                /*resize_edges*/ 0);
                }
@@ -919,6 +922,8 @@ handle_press_mousebinding(struct server *server, struct cursor_context *ctx,
                                         */
                                        consumed_by_frame_context |=
                                                mousebind->context == LAB_SSD_FRAME;
+                                       consumed_by_frame_context |=
+                                               mousebind->context == LAB_SSD_ALL;
                                        mousebind->pressed_in_context = true;
                                }
                                continue;
@@ -933,6 +938,7 @@ handle_press_mousebinding(struct server *server, struct cursor_context *ctx,
                                continue;
                        }
                        consumed_by_frame_context |= mousebind->context == LAB_SSD_FRAME;
+                       consumed_by_frame_context |= mousebind->context == LAB_SSD_ALL;
                        actions_run(ctx->view, server, &mousebind->actions, resize_edges);
                }
        }