mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
menu: invert the y-offset of submenus applied by menu.overlap.y
This follows Openbox's behavior.
This commit is contained in:
parent
d70040c750
commit
45646c694f
1 changed files with 1 additions and 1 deletions
|
|
@ -854,7 +854,7 @@ get_submenu_position(struct menuitem *item, enum menu_align align)
|
||||||
pos.x += menu->size.width - theme->menu_overlap_x
|
pos.x += menu->size.width - theme->menu_overlap_x
|
||||||
- theme->menu_border_width;
|
- theme->menu_border_width;
|
||||||
}
|
}
|
||||||
pos.y += item->tree->node.y - theme->menu_overlap_y
|
pos.y += item->tree->node.y + theme->menu_overlap_y
|
||||||
- theme->menu_border_width;
|
- theme->menu_border_width;
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue