https://bugs.documentfoundation.org/show_bug.cgi?id=96011

--- Comment #15 from Clint <[email protected]> ---
This bug has plagued me for a long time. As a workaround for Windows, I worked
up a script for AutoHotkey that automatically brings the window to the
foreground. Might not work for everyone, but I put it here to help those that
it can help. You'll have to download and install Autohotkey from their website
and save the script below.

*******Save the lines below as libreoffice.ahk*******
#Persistent
Gui +LastFound
hWnd := WinExist()

DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
Return

ShellMessage( wParam,lParam ) {
  Local k
  If ( wParam = 1 ) ;  HSHELL_WINDOWCREATED := 1
     {
       NewID := lParam
       WinGetClass, Class, ahk_id %NewID%
       If ( Class = "SALFRAME" )
          {
            WinActivateBottom, ahk_id %NewID%

          }
     }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to