mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fixed bug with scrolling menus (introduced by xinerama patch)
This commit is contained in:
@@ -65,6 +65,7 @@ Changes since version 0.80.2:
|
||||
- Fixed Clip's workspace menu mapping to be consistent with the others
|
||||
- Fixed bug in wmsetbg that caused scale and maxscale to both do maxscale
|
||||
(Alexey Voinov <voins@voins.program.ru>)
|
||||
- Fixed bug with scrolling menus introduced by the xinerama patch.
|
||||
|
||||
|
||||
Changes since version 0.80.1:
|
||||
|
||||
10
src/menu.c
10
src/menu.c
@@ -785,9 +785,9 @@ paintEntry(WMenu *menu, int index, int selected)
|
||||
|
||||
if (entry->cascade>=0) {
|
||||
/* draw the cascade indicator */
|
||||
XDrawLine(dpy,win,dim, w-11, y+6, w-6, y+h/2-1);
|
||||
XDrawLine(dpy,win,light, w-11, y+h-8, w-6, y+h/2-1);
|
||||
XDrawLine(dpy,win,dark, w-12, y+6, w-12, y+h-8);
|
||||
XDrawLine(dpy, win, dim, w-11, y+6, w-6, y+h/2-1);
|
||||
XDrawLine(dpy, win, light, w-11, y+h-8, w-6, y+h/2-1);
|
||||
XDrawLine(dpy, win, dark, w-12, y+6, w-12, y+h-8);
|
||||
}
|
||||
|
||||
/* draw indicator */
|
||||
@@ -1752,11 +1752,11 @@ isPointNearBoder(WMenu *menu, int x, int y)
|
||||
|
||||
if (x >= menuX1 && x <= menuX2 &&
|
||||
(y < rect.pos.y + MENU_SCROLL_BORDER ||
|
||||
y >= rect.pos.y + rect.size.height + MENU_SCROLL_BORDER))
|
||||
y >= rect.pos.y + rect.size.height - MENU_SCROLL_BORDER))
|
||||
flag = 1;
|
||||
else if (y >= menuY1 && y <= menuY2 &&
|
||||
(x < rect.pos.x + MENU_SCROLL_BORDER ||
|
||||
x >= rect.pos.x + rect.size.width + MENU_SCROLL_BORDER))
|
||||
x >= rect.pos.x + rect.size.width - MENU_SCROLL_BORDER))
|
||||
flag = 1;
|
||||
|
||||
return flag;
|
||||
|
||||
Reference in New Issue
Block a user