| Summary: | Using (-) values for windows position makes the window disapear | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Mend <thedjknownasez> |
| Component: | core | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | nate, thedjknownasez |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.0 | ||
| Target Milestone: | --- | ||
| Platform: | NixOS | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/f0c8aabceed528a56ece0b579e32f50a19d379cb | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Mend
2023-02-20 03:33:35 UTC
Using the 'Apply Initially' option(for position) seems to sometimes work for the positive value but the negative value isn't recognized. What's the usecase for putting windows offscreen? A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3633 (In reply to Vlad Zahorodnii from comment #2) > What's the usecase for putting windows offscreen? I like to have a 16:9 section of my Ultrawide sectioned off for my virtual machine. Using VMM there are headers and a toolbar at the top of the window. So in order to have a full screen like experiance I need to move it partially off screen(so the top bars are not shown anymore) and prefer to do that once I open my VM. Currently now I have to manually drag it every time I open it. I mainly do this for my Astrology work/readings as none of my software runs on Linux. https://imgur.com/a/sC0CuTS (In reply to Bug Janitor Service from comment #3) > A possibly relevant merge request was started @ > https://invent.kde.org/plasma/kwin/-/merge_requests/3633 I don't believe so. This is happening under x11(I haven't tried under Wayland). This is supposed to be a wayland fix. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9156 Git commit 2f8a86034baeb9c238fbf20f772b23cac659e073 by Xaver Hugl. Committed on 01/05/2026 at 10:43. Pushed by zamundaaa into branch 'master'. rules: make checkGeometrySafe actually safe If the window rule's position was outside of every screen, it before returned a rectangle that's at INT_MIN, causing the window to disappear and even triggering asserts when that geometry was used in some calculations. M +7 -6 src/rules.cpp M +1 -2 src/rules.h M +3 -3 src/x11window.cpp M +7 -5 src/xdgshellwindow.cpp M +1 -1 src/xdgshellwindow.h https://invent.kde.org/plasma/kwin/-/commit/2f8a86034baeb9c238fbf20f772b23cac659e073 Git commit f0c8aabceed528a56ece0b579e32f50a19d379cb by Xaver Hugl. Committed on 01/05/2026 at 22:37. Pushed by zamundaaa into branch 'Plasma/6.6'. rules: make checkGeometrySafe actually safe If the window rule's position was outside of every screen, it before returned a rectangle that's at INT_MIN, causing the window to disappear and even triggering asserts when that geometry was used in some calculations. (cherry picked from commit 2f8a86034baeb9c238fbf20f772b23cac659e073) Co-authored-by: Xaver Hugl <xaver.hugl@kde.org> M +7 -6 src/rules.cpp M +1 -2 src/rules.h M +3 -3 src/x11window.cpp M +7 -5 src/xdgshellwindow.cpp M +1 -1 src/xdgshellwindow.h https://invent.kde.org/plasma/kwin/-/commit/f0c8aabceed528a56ece0b579e32f50a19d379cb |