Tweak to last patch for when virtual screen size is not set ( X driver )
authorJerome St-Louis <jerome@ecere.com>
Wed, 31 Aug 2011 00:57:39 +0000 (20:57 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 31 Aug 2011 00:57:39 +0000 (20:57 -0400)
ecere/src/gui/controls/Menu.ec

index 9f9b350..91160bd 100644 (file)
@@ -1625,7 +1625,7 @@ public class PopupMenu : Window
                }
                *y = Max(*y, 0);
             }
-            *x = Min(*x, ((parent == guiApp.desktop) ? guiApp.virtualScreen.w : parent.clientSize.w) - w);
+            *x = Min(*x, ((parent == guiApp.desktop && guiApp.virtualScreen.w) ? guiApp.virtualScreen.w : parent.clientSize.w) - w);
          }
          else if(nonClient)
          {