[Lazarus] Getting X Window handle ?
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Tue Nov 6 11:04:46 CET 2012
zeljko wrote:
> On Tuesday 06 of November 2012 10:20:03 Mark Morgan Lloyd wrote:
>> Kostas Michalopoulos wrote:
>>> I'd like such a function myself too, sometimes it is useful to access
>>> the *real* native window regardless of the widgetset you use (GTK, Qt,
>>> Carbon, etc).
>> Definitely agreed. In my case so that a program can disable the screen
>> saver whilst it's running using xdg-screensaver.
>
> Maybe we can add LCLIntf.GetNativeHandle(Handle: HWND): PtrUInt ?
+1 here. I had to resort to calling xwininfo, since it was the only way
I could be absolutely confident that the ID was always correct
irrespective of the combination of wm/desktop and display manager.
--
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