Issue 110649 - Windowhandling broken (not the document in front has the fokus)
Summary: Windowhandling broken (not the document in front has the fokus)
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: DEV300m75
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 14:20 UTC by oc
Modified: 2017-05-20 10:48 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 oc 2010-04-06 14:20:52 UTC
Run autotest c_updt1.bas on Linux => the testcase tFileRecentDocument fails
because the wrong document has the focus. The behaviour has changed recently
Comment 1 philipp.lohmann 2010-04-12 09:55:40 UTC
I rather suspect your Window Manager has changed recently. In general you cannot
rely on focus handling of the system, the window manager will do as it pleases.

But what's one more workaround for the testtool, so I'll try to "fix" this in
testtool case. After all what would be testing what the user actually gets good
for ;-)
Comment 2 philipp.lohmann 2010-05-06 10:40:58 UTC
Ok, I stepped through this test with oc and here is  a more detailed description:

- start with office (attached to testtool) showing the startcenter
- focus is now in the testtool
- let the script run
- it opens a new document, inserts a cell
  -> note that the focus is still in the testtool
- the script opens a second document
  -> focus still in testtool
- the script closes "the document" which it assumes to be the recently loaded
document, not the untitled new one

-> you end up with one document, BUT: the contents is that of the "file open"
document whereas the title bar shows the "Untitled" of the original new document.

Aside from the fact that the focus is not a really reliable way of marking "the
current document" in scripts, surely if one document is closed the title
displayed should be that of the remaining document.
Comment 3 carsten.driesner 2010-08-25 13:27:56 UTC
cd->oc: After adding more logging code it's definitely clear that the test tool
itself changes the title to "Untitled 1 - Oracle Open Office Calc TTS
:localhost[13034]". Look at the attach "TTS:..." part which is typical for the
test tool. You can also see the correct title below the "Window" menu.
Unfortunately it's not so easy to get a good stack. Due to limited time as I
have to stop working on this issue. 

cd: I can only reproduce this problem with KDE 4.0.4. Using KDE 4.4.2 (Ubuntu
10.04) and Gnome solves the problem.
Comment 4 oc 2010-08-25 13:31:39 UTC
changing target to 3.4 because no problem for OOo
Comment 5 Marcus 2017-05-20 10:48:15 UTC
Reset assigne to the default "issues@openoffice.apache.org".