2008-03-07 21:01:08 +00:00
|
|
|
Should be fixed in YMenu / YPopupWindow for all menus, but we need it now
|
|
|
|
for the window menu (to disable it in the installation icewm)
|
|
|
|
---
|
|
|
|
src/wmframe.cc | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
2009-04-30 23:18:49 +00:00
|
|
|
Index: src/wmframe.cc
|
|
|
|
===================================================================
|
2008-03-07 21:01:08 +00:00
|
|
|
--- src/wmframe.cc.orig
|
|
|
|
+++ src/wmframe.cc
|
2009-04-30 23:18:49 +00:00
|
|
|
@@ -2017,6 +2017,8 @@ void YFrameWindow::popupSystemMenu(YWind
|
2008-03-07 21:01:08 +00:00
|
|
|
{
|
|
|
|
if (fPopupActive == 0) {
|
|
|
|
updateMenu();
|
|
|
|
+ if (windowMenu()->itemCount() == 0)
|
|
|
|
+ return;
|
|
|
|
if (windowMenu()->popup(owner, forWindow, this,
|
|
|
|
x, y, flags))
|
|
|
|
fPopupActive = windowMenu();
|