[Lazarus] "Defeating" a screen saver

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Sep 28 15:50:46 CEST 2012


zeljko wrote:
>> Health warning:
>> http://lists.lazarus.freepascal.org/pipermail/lazarus/2008-August/037407.ht
>> ml suggests following a handle in TForm to arrive at a window ID, but that
>> appears to depend on the combination of widget set and window manager: as
>> a particular example, it's unreliable with gtk2 on top of KDE.
>>
>> Without delving into the raw X API, the only reliable way of doing this
>> appears to be to run xwininfo and parse the output. The window ID from
>> that is compatible with xdg-screensaver.
> 
> What's problem with gtk2 and KDE ? You already have helper functions for X11 
> in gtk2widgetset.inc, so there you can see howto get XWindow handle and do 
> whatever with it with direct calls.

Go on then: how do I temporarily defeat the screensaver?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list