Compare commits

...

1 Commits

Author SHA1 Message Date
Ferdinand Schober
417a3820a2 temporary workaround for Hyprland/issues/6170
https://github.com/hyprwm/Hyprland/issues/6170
2024-06-28 11:59:14 +02:00

View File

@@ -146,8 +146,8 @@ impl Window {
let g = &state.g;
let (width, height) = match pos {
Position::Left | Position::Right => (1, size.1 as u32),
Position::Top | Position::Bottom => (size.0 as u32, 1),
Position::Left | Position::Right => (2, size.1 as u32),
Position::Top | Position::Bottom => (size.0 as u32, 2),
};
let mut file = tempfile::tempfile().unwrap();
draw(&mut file, (width, height));