-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Windows: Increase border size in undecorated shadow mode for better grip #4181
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
base: master
Are you sure you want to change the base?
Windows: Increase border size in undecorated shadow mode for better grip #4181
Conversation
Increases the border size to make it easier to grip the window.
| params.rgrc[0].bottom -= 2; | ||
| params.rgrc[0].left += 2; | ||
| params.rgrc[0].right -= 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which coordinates it is? logical or physical? I'd assume you generally want to apply scaling for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The adjustments might be using logical coordinates. Should I adapt them for DPI scaling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point is that if you have DPR 2, the area where you can grip should match logically if you had DPR 1, otherwise on high DPI monitor you won't be able to grab anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I'll try adding DPI scaling tomorrow and test it on a high-DPI monitor (if I can find one).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just change settings in windows to scale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see...thanks!
After enabling undecorated shadow on Windows, the borders, except for the top, become very thin, making dragging the window difficult.
I have modified the border size to make it easier to grab and drag. However, I've realized that this might not be the best solution.
changelogmodule if knowledge of this change could be valuable to users