forge
Explore
Log in

Don't you dare go Hollow

layout: Add hack to work around maximized GTK damage

Browse files at this commit

c7f8a188ea4ba0bb233141dc3e26b9212a0a3f42Ivan MolodetskikhParent: 0d2ed2e
src/layout.rsmodified+8 -1
@@ -1921,7 +1921,14 @@ impl Monitor<Window> {
1921 CropRenderElement::from_element(1921 CropRenderElement::from_element(
1922 elem,1922 elem,
1923 output_scale,1923 output_scale,
1924- Rectangle::from_loc_and_size((0, 0), size),1924+ // HACK: set infinite crop bounds due to a damage tracking bug
1925+ // which causes glitched rendering for maximized GTK windows.
1926+ // FIXME: use proper bounds after fixing the Crop element.
1927+ Rectangle::from_loc_and_size(
1928+ (-i32::MAX / 2, -i32::MAX / 2),
1929+ (i32::MAX, i32::MAX),
1930+ ),
1931+ // Rectangle::from_loc_and_size((0, 0), size),
1925 )?,1932 )?,
1926 (0, 0),1933 (0, 0),
1927 Relocate::Relative,1934 Relocate::Relative,