Skip to content

Make restricted interactive move handle subdivided screen areas better

Vlad Zahorodnii requested to merge work/zzag/restricted-move into master

If outputs are arranged as follows

             +--------+
+------------+        |
|            |        |
|            |        |
|            |        |
+------------+        |
+------------+        |
             |        |
             |        |
             +--------+

where the output on the left has a panel, the computed available area may look as follow

             +--------+
+------------+        |
|            |        |
|            |        |
|            |        |
+------------+--------+
             |        |
             |        |
             |        |
             +--------+

the current titlebar visibility test doesn't take into account the case where the second screen is subdivided in several smaller rects.

The second screen rect can be subdivided because that's how QRegion subtraction works.

This change attempts to fix that by making the visibility test use precomputed work areas, which are not subdivided.

BUG: 449160

Edited by Vlad Zahorodnii

Merge request reports

Loading