To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=97494 Issue #|97494 Summary|XTopWindow.toFront does not always move the window to |the front Component|api Version|OOO300m9 Platform|Unknown URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|dwatkins
------- Additional comments from dwatk...@openoffice.org Mon Dec 22 13:47:19 +0000 2008 ------- If the XTopWindow doesn't have focus when the toFront() call is made, then it won't move at all. I would expect the toFront() call to send the window to the front whenever it is called. When calling XTopWindow.toFront, the API code calls Window::ToTop[0] which calls Window::ImplStartToTop[1] which in turn calls Window::ImplToTop[2]. Window::ImplToTop includes the following check: if ( !mpWindowImpl->mpFrameData->mbHasFocus && !mpWindowImpl->mpFrameData->mbSysObjFocus && !mpWindowImpl->mpFrameData->mbInSysObjFocusHdl && !mpWindowImpl->mpFrameData->mbInSysObjToTopHdl ) If this check is false, then the call is just ignored. Commenting out the first line of this check causes the issue to go away (and is what we've had to do, as we need this API call to work). There should probably be something like a TOTOP_IREALLYMEANIT flag (or perhaps TOTOP_IGNOREFOCUS would be more appropriate) which the API call could pass through which would bypass the above check. [Footnote 0: http://svn.services.openoffice.org/opengrok/xref/Current/vcl/source/window/window.cxx#6958] [Footnote 1: http://svn.services.openoffice.org/opengrok/xref/Current/vcl/source/window/window.cxx#ImplStartToTop] [Footnote 2: http://svn.services.openoffice.org/opengrok/xref/Current/vcl/source/window/window.cxx#ImplToTop] --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org