mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
disable scrolling menu when it is in virtual desktop mode.
you have to click and drag to scroll the menu.
This commit is contained in:
@@ -1006,6 +1006,7 @@ handleEnterNotify(XEvent *event)
|
||||
wWorkspaceGetViewPosition(scr, scr->current_workspace, &x, &y);
|
||||
wWorkspaceSetViewPort(scr, scr->current_workspace, x, y - VIRTUALEDGE_SCROLL_VSTEP);
|
||||
} else if (event->xcrossing.window == scr->virtual_edge_d) {
|
||||
printf("enter bottom\n");
|
||||
XWarpPointer(dpy, None, scr->root_win, 0,0,0,0, event->xcrossing.x_root, scr->scr_height - wPreferences.vedge_thickness - 1);
|
||||
wWorkspaceGetViewPosition(scr, scr->current_workspace, &x, &y);
|
||||
wWorkspaceSetViewPort(scr, scr->current_workspace, x, y + VIRTUALEDGE_SCROLL_VSTEP);
|
||||
|
||||
Reference in New Issue
Block a user