| Summary: | Maximized window position is wrong after dragging to top of second monitor | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | John Lindgren <john> |
| Component: | core | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | Flags: | thomas.luebking:
ReviewRequest+
|
| Priority: | NOR | ||
| Version First Reported In: | 5.3.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| URL: | https://git.reviewboard.kde.org/r/123910/ | ||
| Latest Commit: | http://commits.kde.org/kwin/1df2d5979fb25cb83442b5df74c84d4cba6029eb | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Video of the problem | ||
|
Description
John Lindgren
2015-05-22 23:58:57 UTC
Created attachment 92787 [details]
Video of the problem
Seems to only happen with xterm windows, others behave as expected. please provide output of xprop of the xterm window and the output of xrandr $20 that it doesn't happen when using the maximize button? diff --git a/geometry.cpp b/geometry.cpp
index c5e57d0..ae906a2 100644
--- a/geometry.cpp
+++ b/geometry.cpp
@@ -2319,7 +2319,7 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust)
r.setSize(adjustedSize(r.size(), SizemodeMax));
if (r.size() != clientArea.size()) { // to avoid off-by-one errors...
if (isElectricBorderMaximizing() && r.width() < clientArea.width())
- r.moveLeft(Cursor::pos().x() - r.width()/2);
+ r.moveLeft(qMax(clientArea.left(), Cursor::pos().x() - r.width()/2));
else
r.moveCenter(clientArea.center());
r.moveTopLeft(rules()->checkPosition(r.topLeft()));
Correct, it only happens when dragging; the maximize button works fine. Do you still need xprop and xrandr? Git commit 1df2d5979fb25cb83442b5df74c84d4cba6029eb by Thomas Lübking. Committed on 03/06/2015 at 19:22. Pushed by luebking into branch 'Plasma/5.3'. keep quick maximized w/ size restritions in screen ... bounds REVIEW: 123910 M +5 -3 geometry.cpp http://commits.kde.org/kwin/1df2d5979fb25cb83442b5df74c84d4cba6029eb |