1
0
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:
id
2001-04-16 13:33:50 +00:00
parent 5c37df521e
commit 9d1306bf01
4 changed files with 200 additions and 182 deletions

View File

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