Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Preserve Window Position When Moving Between Displays

Open imran0 opened this issue 5 months ago • 1 comments

I wanted to ask whether it would be possible to add an option for window moves between displays to preserve the relative position of the window, rather than automatically centering it.

Even better would be if we could mirror the windows relative position to the destination display. (for dual screen users I feel this would cool to have)

imran0 avatar Nov 21 '25 15:11 imran0

This is actually something I've been wanting to do but don't have the bandwidth at the moment. My thought is that if there are window edges touching the screen edge, then we'd want that to be preserved when moving to the destination display. There would be some ambiguity/complexity on what to do with windows that only touch an edge on one side or don't expand fully, but it should be possible to get a result that feels intuitive. I would even say that should be the default behavior, and make the current centering behavior available as a terminal command option. I'd welcome a pull request for this if anyone's interested.

rxhanson avatar Nov 21 '25 16:11 rxhanson