Skip to content

Window Position Recall#585

Open
bwrightkc wants to merge 3 commits into
shlomif:masterfrom
bwrightkc:remember-window-position-upstream
Open

Window Position Recall#585
bwrightkc wants to merge 3 commits into
shlomif:masterfrom
bwrightkc:remember-window-position-upstream

Conversation

@bwrightkc

Copy link
Copy Markdown
Contributor

Remembers where you left the app window (position, size, monitor) and reopens it there next time — previously it always reset to a default spot. Also fixes popup dialogs (like confirmation prompts and the cardset picker) so they show up next to the actual window instead of jumping back toward the primary monitor when the app is on a second screen. Had to change a few lines in tkutil to ensure that it would still work even if the secondary monitor is positioned to the left (creates a -x situation).

Needs more testing - tested on macOS 27 dev beta and Debian 11 Bullseye. Requesting a few folks give this a try and see how it performs - I already found one issue with it, hence the most recent commit.

Implements #560

Popups were positioned relative to (max(parent_x, 0), max(parent_y, 0)),
and then clamped again to the primary screen's width/height, so a root
window on a monitor left of/above the primary (negative coordinates)
got its dialogs placed near the primary monitor's corner instead of
next to the actual window.
let's try this instead in case it ends up outside of screen
@joeraz

joeraz commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Noted - I can run tests on Windows 11 and Debian later. Once I get my second monitor set up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants