diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-24 11:30:44 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-24 11:30:44 +0400 |
| commit | c7f8a188ea4ba0bb233141dc3e26b9212a0a3f42 (patch) | |
| tree | 0c6ab628a8abbce684648086d3f6ae78fedd9e30 /src | |
| parent | 0d2ed2e14a5917c82154e2d263bcde4a6f96a850 (diff) | |
| download | niri-c7f8a188ea4ba0bb233141dc3e26b9212a0a3f42.tar.gz niri-c7f8a188ea4ba0bb233141dc3e26b9212a0a3f42.tar.bz2 niri-c7f8a188ea4ba0bb233141dc3e26b9212a0a3f42.zip | |
layout: Add hack to work around maximized GTK damage
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs index 9daac895..f27e85d8 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1921,7 +1921,14 @@ impl Monitor<Window> { CropRenderElement::from_element( elem, output_scale, - Rectangle::from_loc_and_size((0, 0), size), + // HACK: set infinite crop bounds due to a damage tracking bug + // which causes glitched rendering for maximized GTK windows. + // FIXME: use proper bounds after fixing the Crop element. + Rectangle::from_loc_and_size( + (-i32::MAX / 2, -i32::MAX / 2), + (i32::MAX, i32::MAX), + ), + // Rectangle::from_loc_and_size((0, 0), size), )?, (0, 0), Relocate::Relative, |
