]> git.mdlowis.com Git - proto/labwc.git/commitdiff
replace hard-coded ShowMenu on root button press with mouse binding trigger
authorbi4k8 <bi4k8@github>
Wed, 1 Dec 2021 22:17:33 +0000 (22:17 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 3 Dec 2021 06:46:43 +0000 (06:46 +0000)
src/cursor.c

index 8752ca98f9b8cfde861e0acd768283c7fbd94899..f469a49b808f6e80c00d7c9c93ad0421fa848ad7 100644 (file)
@@ -585,7 +585,7 @@ cursor_button(struct wl_listener *listener, void *data)
 
        /* Handle _press_ on root window */
        if (!view) {
-               action(server, "ShowMenu", "root-menu", 0);
+               handle_press_mousebinding(server, event->button, modifiers, LAB_SSD_ROOT, 0);
                return;
        }