-
Notifications
You must be signed in to change notification settings - Fork 53
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
scrot --select
and DPI
#285
Comments
Do you have any formula in mind to calculate what the border size should be? |
|
Do you know a way to get the DPI from X? I did some quick search on it a while ago and didn't find anything straightforward (though admittedly, I didn't search too much). If you know how to do it then feel free to open a PR - the formula seems ok to me. |
No, sorry. I'm reading instead of programming at the moment. |
I went with |
allows better default on high dpi displays where the previous default of 1 pixel would've been too small. Closes: #285
allows better default on high dpi displays where the previous default of 1 pixel would've been too small. Closes: #285
allows better default on high dpi displays where the previous default of 1 pixel would've been too small. Closes: #285 Co-authored-by: Guilherme Janczak <[email protected]>
Here's a worst case scenario: you have a smartphone with a 4k screen running PostMarketOS. You take a screenshot with
scrot -s
and... the selection border is 1 pixel wide. That's microscopic.The default selection border size should scale with DPI. Currently, the user can manually specify a size, but a program should do its best to have some sensible behavior by default rather than requiring customization to work.
The text was updated successfully, but these errors were encountered: