Dragging an xterm window to the top of the primary monitor works as expected: the window is maximized. However, dragging the same window to the top of the second monitor results in the window being increased in size but placed halfway between the two monitors. Reproducible: Always Steps to Reproduce: 1. Connect a second monitor 2. Drag a (non-maximized) window by its titlebar to the top of the second monitor Actual Results: The window is increased in size but placed halfway between the two monitors (see attached video). Expected Results: The window should be maximized on the second monitor. I think this used to work in Plasma 5.2. kwin 5.3.0-3 plasma-desktop 5.3.0-3
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