[Libreoffice-ux-advise] keyboard focus/ raise window to top behaviour

Lionel Elie Mamane lionel at mamane.lu
Sun Nov 13 08:37:25 PST 2011


I've started to dig into LO's behaviour with regards to stealing
keyboard focus and raising its windows to top, originally as part of
fdo#35091. That bug was introduced by the fix to i#99971; from that
issue's comment log, the fix was controversial at the time, because it
would reintroduce several older issues, such as i#19976, i#49426,
i#62756.

After this reading, my conclusion is that the expected behaviour with
respect to "steal focus" is platform-dependent:

 - On X11, giving focus to new windows OR NOT is the window manager's
   decision. In general, the application should *not* raise its
   windows to top.

 - On Microsoft Windows, apparently it is *required* to raise your
   windows yourself.

 - On MacOS X, I don't know. Please advise.


I have already (in master) made the gist of the fix to i#99971 be
active only on Microsoft Windows.

I intend to hunt down every place where LibreOffice raises its window
to the top, and inactivate it on X11, and leave it active on
Windows. Please tell me what to do on MacOS X.

Exceptions:

 - Raise window to top on all platforms when the window gets recycled
   for a document that gets opened, instead of a new window being
   created.

   For example, if one creates a new text document (which may or may
   not happen by default on startup, depending on command-line
   options), it is called "Untitled N". If that document is not
   modified in any way, and another text document gets opened, it gets
   opened in that window instead of a new window being created.

 - Maybe others as I discover them.


-- 
Lionel


More information about the Libreoffice-ux-advise mailing list