Skip to content

fix: arrange exclusive layer surfaces first#1004

Merged
zccrs merged 2 commits into
linuxdeepin:masterfrom
wineee:fix-dock
Jun 18, 2026
Merged

fix: arrange exclusive layer surfaces first#1004
zccrs merged 2 commits into
linuxdeepin:masterfrom
wineee:fix-dock

Conversation

@wineee

@wineee wineee commented Jun 17, 2026

Copy link
Copy Markdown
Member

No description provided.

@deepin-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @wineee, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: wineee

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

wineee added 2 commits June 18, 2026 14:22
Refactored the removeExclusiveZone method to use std::ranges::find
instead of std::find_if with a custom lambda. This change modernizes the
code by leveraging C++20 ranges, making the intent clearer and reducing
boilerplate. The new approach directly searches for the desired QObject*
in the first element of each exclusive zone pair, improving code
readability and maintainability.
Layer surfaces with a positive exclusive zone reserve output space that later layer surfaces should observe. Arranging all layer surfaces in a single pass can let non-exclusive surfaces compute geometry before the exclusive zone has been applied.

Split layer surface arrangement into two passes: first arrange surfaces with exclusiveZone() > 0, then arrange surfaces with exclusiveZone() <= 0. This keeps exclusive-zone geometry updates ahead of non-exclusive layer placement while preserving the existing arrangeLayerSurface() behavior.
@wineee wineee changed the title Fix dock fix: arrange exclusive layer surfaces first Jun 18, 2026
@wineee wineee marked this pull request as ready for review June 18, 2026 06:25

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @wineee, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@zccrs zccrs merged commit 4f10dcf into linuxdeepin:master Jun 18, 2026
9 checks passed
@wineee wineee deleted the fix-dock branch June 18, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants