From 5b42f6d0904c5c1e6e3eee136973c6659f649080 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Fri, 19 Sep 2014 11:51:08 +0700 Subject: [PATCH] wmaker: add clip mouse wheel action to change workspace This patch is adding mouse wheel action on clip to switch from one workspace to another. It's a modified version of the vinelinux.org (WindowMaker-0.95.6-wheel.diff) which was setting the action on the entire dock. Signed-off-by: Carlos R. Mafra --- src/dock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dock.c b/src/dock.c index e8372807..21f34ad6 100644 --- a/src/dock.c +++ b/src/dock.c @@ -4020,6 +4020,10 @@ static void iconMouseDown(WObjDescriptor *desc, XEvent *event) if (!btn->launching && (!btn->running || (event->xbutton.state & ControlMask))) launchDockedApplication(btn, True); + } else if (event->xbutton.button == Button4 && dock->type == WM_CLIP) { + wWorkspaceRelativeChange(scr, 1); + } else if (event->xbutton.button == Button5 && dock->type == WM_CLIP) { + wWorkspaceRelativeChange(scr, -1); } }