Re: [Lazarus] Gtk2 question

2010-06-30 Thread zeljko
On Monday 28 June 2010 03:27, SteveG wrote: Is it at all possible to determine which application (eg gedit/etc) had focus 'before' clicking on my laz app. Yes, Theo already answered, but it's not so easy.When you click any form of your laz app it grabs focus so I guess it will be hard to

Re: [Lazarus] Gtk2 question

2010-06-30 Thread zeljko
On Wednesday 30 June 2010 13:03, theo wrote: zeljko wrote: Screen.CustomFormsZOrdered[] But I guess that's for your own application windows only, right? Yep, if he want to get complete X11 tree he can do that via XLib and (now guessing from my mind) use XQueryTree() and friends. zeljko --

Re: [Lazarus] Gtk2 question

2010-06-30 Thread theo
/zeljko wrote: / Yep, if he want to get complete X11 tree he can do that via XLib and (now guessing from my mind) use XQueryTree() and friends. Yes. I had already some code but hacked a class today. The code and an example is here: http://www.theo.ch/lazarus/winlist.zip The example lists

Re: [Lazarus] Gtk2 question

2010-06-29 Thread theo
You can probably do this using XLib interface directly (units x, xlib) and polling. I don't know if you can get an event for this. http://tronche.com/gui/x/xlib/input/XGetInputFocus.html Warning: XLib programming is not easy. ;-) -- ___ Lazarus

Re: [Lazarus] Gtk2 question

2010-06-28 Thread Hans-Peter Diettrich
SteveG schrieb: Is it at all possible to determine which application (eg gedit/etc) had focus 'before' clicking on my laz app. This is more a question of the window manager (KDE, Gnome...), not of the widgetset. Such support is almost missing (not implemented), e.g. it's still impossible to