Re: window-position in after-move-hook returns old window position?
GSR - FR <[email protected]> Sat, 31 May 2025 10:20:09 +0200
| Newsgroups | gmane.comp.window-managers.sawfish |
|---|---|
| Message-ID | <[email protected]> |
Hi, [email protected] (2025-05-08 at 1907.04 +0200): > I ended up using `while-moving-hook` during which the window always > reports its correct position (curiously). [...] > (add-hook 'add-window-hook sticky-second-monitor-window-toggler) > (add-hook 'place-window-hook sticky-second-monitor-window-toggler) > (add-hook 'while-moving-hook sticky-second-monitor-window-toggler) Situation is a bit confusing because there is after-move-hook as you mentioned and tried in the other post, but also window-moved-hook, which I don't know if you tried too. Maybe this other is better? Anyhow, if the 3 above do it, great. Bonus: while-moving-hook works with outline and opaque moves tho info pages also say it's called before the actual move, so maybe the toggle is lagging by one mouse event. As in: multiple events in one zone but single last one in the other zone would fail to toggle, or so I suppose. Cheers, GSR -- Sawfish ML