Fix rounded corners on blocked-out resizes
Browse files at this commit314ad9d3e57fbf94772ab23ce77324042f79f680Parent: 99eb1221 changed file +11 -0
- src/layout/tile.rs +11 -0
src/layout/tile.rsmodified+11 -0
| @@ -633,6 +633,17 @@ impl<W: LayoutElement> Tile<W> { | |||
| 633 | .map_err(|err| warn!("error rendering window to texture: {err:?}")) | 633 | .map_err(|err| warn!("error rendering window to texture: {err:?}")) |
| 634 | .ok(); | 634 | .ok(); |
| 635 | 635 | ||
| 636 | + // Clip blocked-out resizes unconditionally because they use solid color render | ||
| 637 | + // elements. | ||
| 638 | + let clip_to_geometry = if target | ||
| 639 | + .should_block_out(resize.snapshot.block_out_from) | ||
| 640 | + && target.should_block_out(rules.block_out_from) | ||
| 641 | + { | ||
| 642 | + true | ||
| 643 | + } else { | ||
| 644 | + clip_to_geometry | ||
| 645 | + }; | ||
| 646 | + | ||
| 636 | if let Some((texture_current, _sync_point, texture_current_geo)) = current { | 647 | if let Some((texture_current, _sync_point, texture_current_geo)) = current { |
| 637 | let elem = ResizeRenderElement::new( | 648 | let elem = ResizeRenderElement::new( |
| 638 | area, | 649 | area, |