Skip to content

Commit

Permalink
Round hint_area to physical pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
Pajn committed Aug 27, 2024
1 parent d54c1f3 commit 7b5c01d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layout/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,9 @@ impl<W: LayoutElement> Workspace<W> {
.loc
.x
.min(view_area.loc.x + view_area.size.w - 150.);
hint_area = hint_area
.to_physical_precise_round(self.scale.fractional_scale())
.to_logical(self.scale.fractional_scale());

Some(hint_area)
}
Expand Down

0 comments on commit 7b5c01d

Please sign in to comment.