Issue 62756 - Keyboard focus stolen during startup
Summary: Keyboard focus stolen during startup
Status: CLOSED DUPLICATE of issue 19976
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.1
Hardware: All Unix, all
: P3 Trivial (vote)
Target Milestone: OOo 2.x
Assignee: andreas.schluens
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-03 17:56 UTC by pcrow
Modified: 2007-01-02 10:10 UTC (History)
1 user (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 pcrow 2006-03-03 17:56:07 UTC
If you have your window manager set to pointer focus, OpenOffice.org still grabs
the keyboard focus when it starts up, even if the mouse is on another application.
Comment 1 thorsten.martens 2006-03-23 14:08:23 UTC
TM-PL: please have a look.
Comment 2 philipp.lohmann 2006-03-24 09:31:07 UTC
confirmed
Comment 3 philipp.lohmann 2006-04-11 11:21:51 UTC
pl->as: Actually this is framework calling ToTop

#0  0x41962635 in XSetInputFocus () from /usr/X11R6/lib/libX11.so.6
#1  0x43a74b86 in X11SalFrame::ToTop (this=0x46fdfc98, nFlags=12)
    at /usr/data/vcl57/vcl/unx/source/window/salframe.cxx:1268
#2  0x4029a7a8 in Window::ImplGrabFocus (this=0x46fdf7d8, nFlags=0)
    at /usr/data/vcl57/vcl/source/window/window.cxx:4036
#3  0x402a58fb in Window::GrabFocus (this=0x46fdf7d8)
    at /usr/data/vcl57/vcl/source/window/window.cxx:7503
#4  0x4029a490 in Window::ImplGrabFocus (this=0x46fdfa38, nFlags=0)
    at /usr/data/vcl57/vcl/source/window/window.cxx:3950
#5  0x402a58fb in Window::GrabFocus (this=0x46fdfa38)
    at /usr/data/vcl57/vcl/source/window/window.cxx:7503
#6  0x40299dbb in Window::ImplFocusToTop (this=0x46fdf7d8, nFlags=1,
    bReallyVisible=1 '\001')
    at /usr/data/vcl57/vcl/source/window/window.cxx:3756
#7  0x402a37dd in Window::ToTop (this=0x46fdf7d8, nFlags=1)
    at /usr/data/vcl57/vcl/source/window/window.cxx:6780
#8  0x40bb5efc in non-virtual thunk to VCLXMenu::getTypes() ()
   from /usr/data/vcl57/office/program/libtk680li.so
#9  0x45b6182b in component_writeInfo ()
   from /usr/data/vcl57/office/program/libfwk680li.so
#10 0x45b67028 in component_writeInfo ()
   from /usr/data/vcl57/office/program/libfwk680li.so
Comment 4 Mathias_Bauer 2006-07-10 08:59:07 UTC
This code was changed in cws inplaceobjects for issue 19976.
I assume that grabbing the focus still can happen if the window manager itself
moves the focus to a window that became visible for the first time. 
As the second case seems to be correct and the first one should be fixed by
issue 19976 this issue can be seen as a duplicate.
If there is still a superfluous focus grabbing in OOo I assume that it happens
inside VCL.

*** This issue has been marked as a duplicate of 19976 ***
Comment 5 andreas.schluens 2007-01-02 10:10:49 UTC
.