Skip to content

Commit

Permalink
temporary workaround for Hyprland/issues/6170
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Jun 28, 2024
1 parent 232c048 commit 417a382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/capture/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 417a382

Please sign in to comment.