x11: fixes for dpi scaling#965
Conversation
This may solve issue with incorrect window sizes
Codecov Report
@@ Coverage Diff @@
## master #965 +/- ##
==========================================
- Coverage 60.34% 60.32% -0.02%
==========================================
Files 42 42
Lines 6415 6417 +2
==========================================
Hits 3871 3871
- Misses 2544 2546 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Is it enough to fix the text dimensions? I mean, there are other elements that depend on the scale, like icon dimensions, alignments, etc which also use round() |
Probably not, but I don't want to risk breaking notifications with random ceils. |
This may solve issue with incorrect window sizes.
It also fixes mouse position calculations. So the correct notification will be closed again when clicking on it.
Fixes: #950 #966