window-position in after-move-hook returns old window position?
Robert 'Bobby' Zenz <[email protected]> Tue, 29 Apr 2025 14:45:39 +0200
| Newsgroups | gmane.comp.window-managers.sawfish |
|---|---|
| Message-ID | <20250429144539.56510995@Dagon> |
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