| Summary: | xdg_positioner.set_constraint_adjustment(none) is ignored | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Mark Bolhuis <mark> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.26.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Mark Bolhuis
2022-11-18 14:36:13 UTC
What's the user-facing bug we're trying to fix?
----
Relevant code is is placement.cpp: placeTransient
// Potentially a client could set no constraint adjustments
// and we'll be offscreen.
// The spec implies we should place window the offscreen. However,
// practically Qt doesn't set any constraint adjustments yet so we can't.
// Also kwin generally doesn't let clients do what they want
if (!screen.contains(c->moveResizeGeometry().toAlignedRect())) {
c->keepInArea(screen);
}
(In reply to David Edmundson from comment #1) > What's the user-facing bug we're trying to fix? That if the popup is created with a constraint_adjustment of none that the popup isn't constrained, as per the spec. Based on that code snippet I assume then don't call c->keepInArea(screen); it should be fixed in 6.0 |