Apache OpenOffice (AOO) Bugzilla – Issue 49426
repeated focus grabbing on start and document load
Last modified: 2007-01-08 15:14:37 UTC
if i start openoffice by opening a document, openoffice tried to grab focus no less than three times before the document has finally been opened. given the time it can take for oo to start, this is incredibly annoying--effectively meaning that work can't be done while oo opens. first, focus is grabbed as soon as the base windows opens. (i go back to evolution and try to keep working on my overflowing inbox). then focus is grabbed again as oo starts to load the document i originally selected. (again, i go back to try do fight email). finally focus is grabbed one more time when the document has finally been loaded. ideally as soon as i switch focus away from the splash window, oo should not grab focus ever again. i will start working on the document when i fits *my* work schedule, not the applications.
especially when loading large documents, this behaviour is extremely annoying as OOo startup is really slow and blocks the user. In my opinion it's OK to grab the focus when the document is loaded entirely and you can start editing immediately. Or even better: make the behaviour configurable! Regards Tom
Reassigned to framework
TM->PL: Please have a look, thanks
The focus grab on initial show might be due to the window manager (depends on its configuration). All in all this behaviour would require the framework to call Show() with SHOW_NOACTIVATE and ToTop() with TOTOP_NOGRABFOCUS. Is this feasible ?
If OO.o would support the _NET_WM_USER_TIME portion of the EWMH spec (see http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507824) then window managers could provide smart behavior for these windows instead of doing focus-all-new-windows or dont-focus-any-new-windows kludges. (It would also enable a number of other things, such as smarter ability to keep other new windows from stealing focus from OO.o if the user was in the middle of typing in one of the OO.o windows). Note the Gtk+ and QT, for example, have built in support for this property. Feel free to ask questions on the wm-spec mailing list; see http://www.freedesktop.org/wiki/Standards_2fwm_2dspec for more general information.
Andreas, I assume that this is a duplicate, but please have a look at the last two comments, maybe they contain something we could add to your other issue.
The problem is more fundamental than simply not supporting _NET_WM_USER_TIME properly. oo is _ignoring_ the "kludgy" window manager global focus preferences, at least in my case (WindowMaker WindowMaker-0.92.0-3.fc4, linux FC4). Since I have the window manager trying to open oo in a different virtual desktop to dodge its slow startup, the fact that it insists on grabbing the focus means that my whole desktop gets yanked out from under me so I can watch oo open up, plus whatever I was happily typing in my intended window goes streaming instead right into the freshly opened document where it doesn't belong. This was not a problem in oo v1.x, but is a defect new to v2.x. Applications should never make a decision about such things as focus, that's the window manager's job. PS - if this issue is indeed a dupe, what's the master issue?
*** Issue 58681 has been marked as a duplicate of this issue. ***
duplicate *** This issue has been marked as a duplicate of 19976 ***
.