[Lazarus] "Defeating" a screen saver

zeljko zeljko at holobit.net
Fri Sep 28 13:47:55 CEST 2012

> 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.


More information about the Lazarus mailing list