-
Notifications
You must be signed in to change notification settings - Fork 120
Modify fullscreen placement logic to take exclusion zone of higher layers into account #4641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Modify fullscreen placement logic to take exclusion zone of higher layers into account #4641
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR modifies fullscreen window placement logic to respect exclusion zones from windows in higher depth layers, addressing issue #3274.
Changes:
- Updated fullscreen window placement to consider exclusion zones from higher layers instead of always ignoring them
- Added new method
calculate_application_zone_for_depth_layer()to compute application zones based on depth layer hierarchy - Modified test cases to reflect the new behavior where fullscreen windows respect exclusion zones
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/miral/window_placement_attached.cpp | Updated test names and expectations to verify fullscreen windows now respect exclusion zones from higher layers |
| src/miral/basic_window_manager.h | Added declaration for calculate_application_zone_for_depth_layer() method and changed apply_exclusive_rect_to_application_zone() to non-static |
| src/miral/basic_window_manager.cpp | Implemented depth-layer-aware exclusion zone calculation and moved fullscreen surface placement to occur after application zone calculation |
281b1e0 to
1662758
Compare
Saviq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually not sold on this approach.
It assumes shell components will normally be placed below / bottom, which I don't think will normally be the case?
It's common to be able to push a restored window under a panel, which only works if they're placed above / top?
TICS Quality Gate✔️ Passedmir
|
I can't entirely follow. Can you provide a more concrete example? |
Closes #3274
What's new?
How to test
Checklist