diff --git a/wizards/source/scriptforge/SF_UI.xba b/wizards/source/scriptforge/SF_UI.xba index a28b9d4e3b2a..1d4e69967082 100644 --- a/wizards/source/scriptforge/SF_UI.xba +++ b/wizards/source/scriptforge/SF_UI.xba @@ -217,6 +217,7 @@ Dim oEnum As Object ' com.sun.star.container.XEnumeration Dim oComp As Object ' com.sun.star.lang.XComponent Dim vWindow As Window ' A single component Dim oContainer As Object ' com.sun.star.awt.XWindow +Dim bMaximized As Boolean ' True when window is maximized Const cstThisSub = "UI.Activate" Const cstSubArgs = "WindowName" @@ -242,9 +243,11 @@ Try: Set oContainer = vWindow.Frame.ContainerWindow With oContainer If .isVisible() = False Then .setVisible(True) + bMaximized = .IsMaximized .IsMinimized = False .setFocus() .toFront() ' Force window change in Linux + If bMaximized Then .IsMaximized = True ' Re-maximized only when True Wait 1 ' Bypass desynchro issue in Linux End With bActivate = True diff --git a/wizards/source/scriptforge/script.xlb b/wizards/source/scriptforge/script.xlb index a77ee4a07d5b..bead89b8a66e 100644 --- a/wizards/source/scriptforge/script.xlb +++ b/wizards/source/scriptforge/script.xlb @@ -1,6 +1,13 @@ + + + + + + + @@ -14,11 +21,4 @@ - - - - - - - \ No newline at end of file