Skip to content

Properly handle opaque regions for CSD X11 windows

Vlad Zahorodnii requested to merge work/proper-clip-region-csd into master

Currently, we don't compute the clip region properly for some client- side decorated applications, for example gedit, due to mixing several separate coordinate spaces.

This change ensures that the window pixmap shape and the opaque region are in the same coordinate space - the window pixmap coordinate.

In order to simplify mapping regions from the window pixmap coordinates to the global screen coordinates, a new helper method was introduced in the WindowPixmap class - mapToGlobal().

Merge request reports

Loading