1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 14:42:29 +01:00

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 <crmafra@gmail.com>
This commit is contained in:
David Maciejak
2014-09-19 11:51:08 +07:00
committed by Carlos R. Mafra
parent 334e2cc5f4
commit 5b42f6d090

View File

@@ -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);
}
}