Issue 49426 - repeated focus grabbing on start and document load
Summary: repeated focus grabbing on start and document load
Status: CLOSED DUPLICATE of issue 19976
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.0 Beta
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: andreas.schluens
QA Contact: issues@framework
URL:
Keywords:
: 58681 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-05-18 02:04 UTC by mkrisch
Modified: 2007-01-08 15:14 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mkrisch 2005-05-18 02:04:46 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.
Comment 1 oo_tom 2005-06-20 09:26:43 UTC
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

Comment 2 eric.savary 2005-06-23 23:14:03 UTC
Reassigned to framework
Comment 3 thorsten.martens 2005-07-01 11:43:10 UTC
TM->PL: Please have a look, thanks
Comment 4 philipp.lohmann 2005-07-01 12:09:17 UTC
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 ?
Comment 5 newren 2005-07-07 18:31:37 UTC
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.
Comment 6 Mathias_Bauer 2005-07-08 12:02:01 UTC
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.
Comment 7 habig 2005-11-08 15:53:17 UTC
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?
Comment 8 caolanm 2006-01-04 17:58:35 UTC
*** Issue 58681 has been marked as a duplicate of this issue. ***
Comment 9 caolanm 2006-01-04 20:47:47 UTC
duplicate

*** This issue has been marked as a duplicate of 19976 ***
Comment 10 andreas.schluens 2007-01-08 15:14:37 UTC
.