On Friday, 12 de November de 2010 19:32:39 Sivan Greenberg wrote: > Sorry about the noise, but apparently I confused those with this that > are actually the thing to use: > > QEvent::WindowActivate > QEvent::ApplicationActivated > > (google was unkind letting me find the references for those events so > you'd have to google them yourself)
QEvent::ApplicationActivate(d) is only used on Qt for Mac OS X. Applications
in MeeGo will never get it.
QEvent::WindowActivate is used on X11, however. It's sent in response to an
XFocusIn or EnterNotify events. Its counterpart (QEvent::WindowDeactivate) is
sent to windows when XFocusOut and LeaveNotify are received as well as when
XFocusIn and EnterNotify are sent to other windows.
However, a window being deactivated in X doesn't mean it's no longer visible.
Writing applications that stop painting when they get deactivated may lead to
bizarre results, especially outside of MeeGo.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
