thiago.macieira at intel.com
Wed Sep 23 22:57:59 CEST 2015
On Wednesday 23 September 2015 09:46:07 René J.V. Bertin wrote:
> On Wednesday September 23 2015 08:29:18 Tomasz Siekierda wrote:
> >I think that is a behaviour specific to some window managers. Not sure if
> >you can replicate it in Qt.
> You may be right of course (which is why I asked :))
> Just for the record, it is possible with native API calls on Mac OS X (which
> is where I'd like to implement the feature); if I'm right on how these
> calls are wrapped in Qt, something like
> void enterMouse(QEvent *e)
> probably doesn't work only because setFocus() requires that the window be
> active (= to the front). Adding an activateWindow() before the setFocus()
> call gives FFM, but with window raising.
Then you run into focus-stealing-prevention in window managers.
Anyway, focus between windows is entirely in the province of the window
manager. You can ask, but the WM is not required to do what you ask.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest