CtrlLib: Fixed issue with context menu immediately closing in Cinnamon

git-svn-id: svn://ultimatepp.org/upp/trunk@12780 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-02-21 07:49:34 +00:00
parent 74797d30b8
commit a62336d102

View file

@ -596,7 +596,8 @@ void ChHostSkin()
int m = ImageMargin(mimg, 4, 5);
if(Qt)
m = max(m, DPI(4));
s.popupframe = WithHotSpot(mimg, m, m);
if(m > 0) // Zero frame is causing problems with menu popups - immediate closes via RightUp
s.popupframe = WithHotSpot(mimg, m, m);
s.popupbody = Crop(mimg, m, m, 32 - 2 * m, 32 - 2 * m);
s.leftgap = DPI(16) + Zx(6);;
ChGtkNew(menu_item, "menuitem", GTK_BOX);