I’d like to move a window, when it’s added, close to another window.
In my perl module I catch the M_ADDWINDOW event and I wrote an handler to do some actions.
I need to find the position x/y of the window I want to be close, let’s call it bar . So the only thing I know is the name of the window i want to be close to , and the window added, called foo.
To be clear When a window foo is created I want to move it close to the window bar.
All ideas are very welcome !!