Skip to content

effects/blur: Fix clipping when sliding virtual desktops

Vlad Zahorodnii requested to merge work/zzag/slide-effect-blur into master

When the slide effect paints a virtual desktop, it translates both windows and the clip region.

Since the clip region slides too, the blur effect needs to be careful.

At the moment, the blur effect computes the blur region as follows:

  • get the value of the blur region hint from client, map it to the global coordinate space, and intersect it with the clip region
  • apply translation and scale to the blur region
  • pass the blur region to doBlur()

However, the translation transform must be applied before intersecting the blur region with the clip region.

BUG: 460382

The blurred background is not clipped behind kickoff or the panel because they're static.


Not sure about the target branch.

Edited by Vlad Zahorodnii

Merge request reports

Loading