Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/restore calculator window position #18

Open
macmpi opened this issue Feb 22, 2024 · 3 comments
Open

Save/restore calculator window position #18

macmpi opened this issue Feb 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@macmpi
Copy link
Contributor

macmpi commented Feb 22, 2024

Would be nice to have the window position saved/restored, instead of always coming up in the center of the screen.
Maybe that information can be stored into individual .dat files or something?

@mike632t
Copy link
Owner

Saving it in the .dat file would be a breaking change so I would not want to save it there but the window position (top left corner) is something that could be saved in a common x11-calc.conf or x11-calc.xml file.

Just letting the window manager has some advantages though as it also avoids having to worry about the window being placed off screen if the display resolution or number of screens change...

I did try to implement this a few years ago but what ever I tried the window would always be created in the same place (and moving it afterwards is a bit rubbish).

@macmpi
Copy link
Contributor Author

macmpi commented Feb 22, 2024

Position may be calculator-dependent, like in real life (you may have a 34c on one spot on your desk, and a 11c on another spot), and they do not have all same form-factor: so that would probably be a per-device save.
Not critical though, but thought it could be of interest form some, if not too complex.

@mike632t
Copy link
Owner

mike632t commented Feb 22, 2024

I don't think there is any reason why x11-calc.conf shouldn't be used to store per model settings, though that won't be simple (most platforms I'm targeting don't have things like XML libraries so I'd have to have to write any parser from scratch).

@mike632t mike632t added the enhancement New feature or request label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants