projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2ff706
)
Fixing y position of child menus.
author
phillbush
<phillbush@cock.li>
Thu, 30 Jul 2020 20:24:58 +0000
(17:24 -0300)
committer
phillbush
<phillbush@cock.li>
Thu, 30 Jul 2020 20:24:58 +0000
(17:24 -0300)
xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/xmenu.c
b/xmenu.c
index
abbf240
..
e66ce27
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-755,10
+755,8
@@
setupmenupos(struct Menu *menu)
else if (menu->parent->x > menu->w + config.border_pixels + config.gap_pixels)
menu->x = menu->parent->x - menu->w - config.border_pixels - config.gap_pixels;
else if (menu->parent->x > menu->w + config.border_pixels + config.gap_pixels)
menu->x = menu->parent->x - menu->w - config.border_pixels - config.gap_pixels;
- if (mon.y + mon.h - (menu->caller->y + menu->parent->y) > height)
+ if (mon.y + mon.h - (menu->caller->y + menu->parent->y) >
=
height)
menu->y = menu->caller->y + menu->parent->y;
menu->y = menu->caller->y + menu->parent->y;
- else if (mon.y + mon.h - menu->parent->y > height)
- menu->y = menu->parent->y;
else if (mon.y + mon.h > height)
menu->y = mon.y + mon.h - height;
}
else if (mon.y + mon.h > height)
menu->y = mon.y + mon.h - height;
}