inactive floating toolwindow doesnt request focus on show()
authorKirill Kalishev <kirill.kalishev@jetbrains.com>
Mon, 15 Feb 2010 17:01:00 +0000 (15 20:01 +0300)
committerKirill Kalishev <kirill.kalishev@jetbrains.com>
Mon, 15 Feb 2010 17:01:00 +0000 (15 20:01 +0300)
platform/platform-impl/src/com/intellij/openapi/wm/impl/FloatingDecorator.java

index 55e5329..d985ae1 100644 (file)
@@ -103,6 +103,8 @@ public final class FloatingDecorator extends JDialog{
   }
 
   public final void show(){
+    setFocusableWindowState(myInfo.isActive());
+
     super.show();
     final UISettings uiSettings=UISettings.getInstance();
     if(uiSettings.ENABLE_ALPHA_MODE){
@@ -117,6 +119,7 @@ public final class FloatingDecorator extends JDialog{
     paint(getGraphics()); // This prevents annoying flick
 
     //
+    setFocusableWindowState(true);
 
     uiSettings.addUISettingsListener(myUISettingsListener);
   }