[maemo-developers] Optimal battery life considerations in apps

From: Andrew Flegg andrew at bleb.org
Date: Sat Jul 11 14:09:44 EEST 2009
On Sat, Jul 11, 2009 at 08:28, Faheem Pervez<trippin1 at gmail.com> wrote:
>
> A log of xev running on a tablet running Diablo and minimizing the window:
>
> PropertyNotify event, serial 20, synthetic NO, window 0x1600001,
>    atom 0xeb (WM_STATE), time 1756118079, state PropertyNewValue

I can't seem to get a property-notify-event listener on my window to fire :-(

> FocusOut event, serial 20, synthetic NO, window 0x1600001,
>    mode NotifyNormal, detail NotifyNonlinear

I had a thought about using focus-in/out and checking
window.get_property("is-topmost") - unfortunately, the value of that
property doesn't seem reliable enough (or, rather, the focus-out fires
before the window is minimised)

Cheers,

Andrew

-- 
Andrew Flegg -- mailto:andrew at bleb.org  |  http://www.bleb.org/
Maemo Community Council chair
More information about the maemo-developers mailing list