Bug 341673 - Closing/crashing application while using quick-tile leaves transparent rectangle behind
Summary: Closing/crashing application while using quick-tile leaves transparent rectan...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-window-management (show other bugs)
Version: 5.1.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/121...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-08 21:03 UTC by Elias Probst
Modified: 2014-12-10 12:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.2
mgraesslin: ReviewRequest+


Attachments
Screenshot (431.72 KB, image/png)
2014-12-09 13:09 UTC, Mikhail Ivchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2014-12-08 21:03:02 UTC
When an application closes/crashes while the quick-tile effect is used, the white rectangle which shows the preview of the new window size will be left behind.

How to reproduce:
1. Start an application (e.g. "kwrite")
2. Set a timer to kill it within a few seconds (sleep 10 && killall kwrite)
3. Use now the quick-tile effect and drag the application's window against a display border to show the transparent rectangle/window size preview - wait until the application is terminated

The transparent preview rectangle will stay visible although the application window to which it belonged doesn't exist anymore.

Running latest KF5/P5 from git master as of now + Qt 5.4.0 rc.
Comment 1 Mikhail Ivchenko 2014-12-09 13:09:10 UTC
Created attachment 89880 [details]
Screenshot

Reproducible for me too. (I'm running latest KF5 from Kubuntu CI unstable daily)
Preview rectangle doesn't disappear even when mouse button is released.
Also, it's impossible to click on anything behind it.
Comment 2 Myriam Schweingruber 2014-12-09 19:46:30 UTC
A backtrace might help to identify the culprit.
Comment 3 Martin Flöser 2014-12-09 19:55:23 UTC
@Myriam: might it be that you commented on the wrong bug report? This one has already a fix, so a backtrace is not really needed ;-)
Comment 4 Myriam Schweingruber 2014-12-09 20:02:06 UTC
@Martin: sorry, I missed the link to reviewboard.
Comment 5 Martin Flöser 2014-12-09 20:06:20 UTC
(In reply to Myriam Schweingruber from comment #4)
> @Martin: sorry, I missed the link to reviewboard.

but even then a backtrace is not needed. No crash is involved in this bug, it's just incorect behavior if the window being moved gets closed (e.g. by a crash).
Comment 6 Martin Flöser 2014-12-10 12:49:37 UTC
Git commit d6014927e79ac9c72c89214feba7b58a3ff0d037 by Martin Gräßlin.
Committed on 09/12/2014 at 16:27.
Pushed by graesslin into branch 'Plasma/5.1'.

Cleanup electric border handling in leaveMoveResize

If a Client closed during move/resize with the outline being shown
for quick tile/maximize area, the outline never got removed.
FIXED-IN: 5.1.2
REVIEW: 121410

M  +4    -2    geometry.cpp

http://commits.kde.org/kwin/d6014927e79ac9c72c89214feba7b58a3ff0d037