Apache OpenOffice (AOO) Bugzilla – Issue 110649
Windowhandling broken (not the document in front has the fokus)
Last modified: 2017-05-20 10:48:15 UTC
Run autotest c_updt1.bas on Linux => the testcase tFileRecentDocument fails because the wrong document has the focus. The behaviour has changed recently
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 ;-)
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.
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.
changing target to 3.4 because no problem for OOo
Reset assigne to the default "issues@openoffice.apache.org".