[Sawfish] window-position in after-move-hook returns old window position?

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


I'm writing a script which is supposed to change the stickiness of a
window when it enters my second monitor. However, calling
`window-position` in `after-move-hook` returns the old/previous
position of the window instead of the one it was moved to.

A simplified example would be:

    (add-hook 'after-move-hook (lambda (window) (print (car (window-position window)))))

This prints (for me) always the previous location.

I feel like I've been missing some very simple thing here. Can somebody
help me out on how to get the current window position?

-- 
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/