fix popups on Linux
authornik <Nikolay.Chashnikov@jetbrains.com>
Tue, 10 Aug 2010 07:33:52 +0000 (11:33 +0400)
committernik <Nikolay.Chashnikov@jetbrains.com>
Tue, 10 Aug 2010 07:33:52 +0000 (11:33 +0400)
platform/platform-impl/src/com/intellij/ide/ui/LafManagerImpl.java

index 901f86f0790f24f8901717189d85aed317c2b217..d8edaf74154d4a71ed46735d6120197d33cce3b6 100644 (file)
@@ -320,6 +320,9 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
             int y
           ) throws IllegalArgumentException {
             final Point point = fixPopupLocation(contents, x, y);
+            if (SystemInfo.isLinux) {
+              return new Popup(owner, contents, point.x, point.y){};
+            }
             return oldFactory.getPopup(owner, contents, point.x, point.y);
           }
         };
@@ -333,6 +336,9 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
 
           private Popup createPopup(final Component owner, final Component contents, final int x, final int y) {
             final Point point = fixPopupLocation(contents, x, y);
+            if (SystemInfo.isLinux) {
+              return new Popup(owner, contents, point.x, point.y){};
+            }
             return oldFactory.getPopup(owner, contents, point.x, point.y);
           }
         };