We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b1ed4 commit b14eba7Copy full SHA for b14eba7
src/server/osd_window.rs
@@ -66,8 +66,7 @@ impl SwayosdWindow {
66
let update_margins = |window: >k::ApplicationWindow, monitor: &gdk::Monitor| {
67
// Monitor scale factor is not always correct
68
// Transform monitor height into coordinate system of window
69
- let mon_height =
70
- monitor.geometry().height() * monitor.scale_factor() / window.scale_factor();
+ let mon_height = monitor.geometry().height() / window.scale_factor();
71
// Calculate new margin
72
let bottom = mon_height - window.allocated_height();
73
let margin = (bottom as f32 * get_top_margin()).round() as i32;
0 commit comments