1
0
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:
dan
2003-03-04 13:14:55 +00:00
parent e727cbadb6
commit 277d0055fd
2 changed files with 73 additions and 72 deletions

View File

@@ -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:

View File

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