On 11/12/2010 12:01 PM, Thiago Macieira wrote: > On Friday, 12 de November de 2010 20:09:04 Arjan van de Ven wrote: > > can we get some urgency on solving this? adding events for "you're > > visible" and "you're not visible" ? > > It's a huge deal for power / thermal savings..... > > What event does the WM send? What X event does the app receive?
To (hopefully, at least to the extent of my understanding) clarify: there's nothing in X11 that would give you that unambiguously. An Expose event tells you when a region transitions from obscured to visible, but not the reverse. The DAMAGE extension tells you something like the reverse, but you'd then have to do tricks like walking the window hierarchy to figure out what happened. Maybe these could be hacked to work together, but I don't know the details. The window manager *does* have this information (albeit only for top-level windows), but there's no standard in place for how it should tell apps. So presumably someone has to do some architecture work first? I'm no X11 expert, but it strikes me as a solvable problem to define and emit a WM-specific client message. Andy _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
