]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: fix Scroll mousebinds not inhibited with ToggleKeybinds
authortokyo4j <hrak1529@gmail.com>
Sat, 2 Aug 2025 11:10:09 +0000 (20:10 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 2 Aug 2025 11:27:26 +0000 (12:27 +0100)
fixup for 024ab280

src/input/cursor.c

index 0fc2bbd087d9cd3a42f5428e417e4c56d6b7d464..062c346551823a4bd90cfee70a2d8e4f4a97f1f8 100644 (file)
@@ -1346,6 +1346,10 @@ process_cursor_axis(struct server *server, enum wl_pointer_axis orientation,
        if (direction != LAB_DIRECTION_INVALID) {
                struct mousebind *mousebind;
                wl_list_for_each(mousebind, &rc.mousebinds, link) {
+                       if (ctx.type == LAB_SSD_CLIENT
+                                       && view_inhibits_actions(ctx.view, &mousebind->actions)) {
+                               continue;
+                       }
                        if (ssd_part_contains(mousebind->context, ctx.type)
                                        && mousebind->direction == direction
                                        && modifiers == mousebind->modifiers