Apache OpenOffice (AOO) Bugzilla – Issue 8151
Remember document window focus when switching desktops
Last modified: 2004-02-17 09:03:09 UTC
When switching away from a desktop containing OOo windows and back again, the window that has the focus changes. For example, open two blank writer documents on a desktop. Select Untitled1. Switch desktop away and back. Untitled2 ends up with the focus. Vice versa if you select Untitled2 first. You can get other effects if you open the stylist, too. Confirmed on KDE 2.2, 3.0 and Metacity window managers.
Chris, are you sure that this isn't metacity's problem, e.g. http://bugzilla.gnome.org/show_bug.cgi?id=94545 http://bugzilla.gnome.org/show_bug.cgi?id=88194 or one of the other focus problems, http://bugzilla.gnome.org/buglist.cgi?product=metacity&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=focus&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&status_whiteboard=&status_whiteboard_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query Just kill metacity and start another WM to verify. Peter
Hi, I'm sorry I don't actually have metacity installed - I tested under KDE and Martijn verified the behaviour under metacity. The reason for testing behaviour under several different window managers was to confirm that the problem definately lies with OOo, not a particular window manager.
Hi, I guess working with Gnome2 and Metacity for quite a while made me resistant for such issues ;-). I can confirm your problem on Gnome2/Metacity and KDE 3.0 now. Peter
CP->PL: doesn't really look like a gsl issue, can you check who sets the focus to which window (sfx / metacity) ?
a workaround for sawfish hits back ...
fix goes to top level pl->mh: please update Ooo 643 vcl/unx/source/window/salframe.cxx to rev 1.147 vcl/unx/inc/salframe.h to rev 1.26
Martin, has this been integrated into 643 and/or 644? Thanks, Stefan
it will be in 644, i missed it for 643, sorry.
Rather than opening a new issue for this, I would like to comment on this issue and ask that it be reopened. I am running linux and just installed RC3. The problem existed in RC2 and in no previous versions I have used. If one switches from one window to another or to another desktop, on switching back to the first document, the cursor and screen focus are both moved at least two pages before the position before the switch. Typing any text restores the original focus and cursor position. To reproduce: Type any document of five or more pages (to get a feel for where the focus moves. Stop at the end of the document (cursor at end and focus on the last page). Move to another document or desktop. Move back. Result: focus has moved backward several pages and the cursor is also at that position. Typing anything causes a sudden flip back to the end of the document. Expected result: focus and cursor appear where they were before. Definitely a bug.
created a new issue 18494 for Robert's problem.
verified.
close issue.