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