Linux: xlib - getting handle of current window?

BlitzMax Forums/BlitzMax Programming/Linux: xlib - getting handle of current window?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I would like to get the current window's handle, but so far, the only way I can think of to do it is to hack the blitzgl C source for linux and create a function to return the xwindow variable.

I've been trawling through the xlib function list ( http://tronche.com/gui/x/xlib/function-index.html ) and anything that might help me requires the window handle!

Is there a way to say:

Local win = GetActiveWindow()

?