Linux: xlib - getting handle of current window?

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

Perturbatio(Posted 2005) [#1]
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()

?


skidracer(Posted 2005) [#2]
I'm not able to test but this might work:

strict
extern
global xwindow
end extern
Graphics 640,480,0
print "xwindow="+xwindow



Perturbatio(Posted 2005) [#3]
yes, it works fine, thanks :)