> 
> On a side note, I've also become accustom to the window placement of 'Under
> Mouse'. Anyone up for writing this one? :)
> 
> I'm not on the list, so if you could cc any replies to me, I'd appreciate it.
> 

The patch you supplied is useful in the interim, we have another implementation
in a devel branch.  So the feature will surface (-:

under mouse is actually pretty easy to implement.  If you feel up to it, the
place to start is Workspace.cc:placeWindow().

What you basically need to do is query the current pointer location from X,
then using the new window's width and height place the window accordingly.  The
obvious choice is something like placing the pointer in the middle of the new
window.

win.x = pointer.x - (win.width / 2)
win.y = pointer.y - (win.height / 2)

for instance.  The next thing to consider is whether to honour the
availableArea of the screen and thereby not cover things like the slit or the
toolbar.  It would also keep applications on the screen fully if the new X
would be say -200.

Reply via email to