activateWindow, forceActiveWindow
Jarosław Staniek
js at iidea.pl
Mon Mar 3 09:34:09 CET 2008
Kevin Kofler said the following, On 2008-03-03 09:22:
> Hi,
>
> I believe the current implementations of activateWindow and forceActiveWindow
> in kwindowsystem_win.cpp don't implement the same semantics as their X11
> versions. The issue is that SetActiveWindow only works within a thread (in
> particular, only in the same application), whereas on X11,
> KWindowSystem::activateWindow works just fine across applications. Moreover,
> forceActiveWindow doesn't really force the active window, i.e. bypass focus
> steal prevention, as it's supposed to.
>
> I believe it would be more compliant to have activateWindow call
> SetForegroundWindow( win ); (is calling SetActiveWindow first really
> necessary?) and forceActiveWindow use some hack like
> http://vb.mvps.org/articles/ap199902.pdf (I've also seen some other hacks,
> like sending a fake user input event to the window to activate, but I can't
> find them now.)
>
> I can't test this though (only running GNU/Linux these days).
Thanks Kevin, I'll try to look at this once again. Feel free to send more
ideas like these if you find something.
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
KDE Libraries for MS Windows (http://windows.kde.org)
More information about the Kde-windows
mailing list