Bug 364509 - Applications window disappears while dragging them through Desktop grid effect
Summary: Applications window disappears while dragging them through Desktop grid effect
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-desktop-grid (show other bugs)
Version: 5.6.4
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 370912 374607 374878 377990 383186 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-19 14:34 UTC by Josep Febrer
Modified: 2018-10-26 08:36 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.14.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josep Febrer 2016-06-19 14:34:19 UTC
If I move applications between desktops using the Desktop grid effect they disappear at the moment when I press over it's windows to drag them to another desktop. When I release it the window it will appear again.
This only happens if the window is unmaximized, if the window is maximized the window doesn't disappear.

Reproducible: Always

Steps to Reproduce:
1. Have an unmaximized application opened.
2. Press CTRL + F8 to activate the Desktop grid effect.
3. Press over the window to drag to another desktop.

Actual Results:  
The window will disappear.

Expected Results:  
The window shouldn't disappear while dragging it.

Currently I'm using Debian unstable with KDE 5.6.4, and frameworks 5.23 with Qt 5.6.1 and Intel display drivers.
This bug is present in X11 and Wayland sessions.
Also I could reproduce it on an Arch Linux system with the same versions using the nVidia propietary drivers.
Comment 1 Martin Flöser 2016-10-15 12:12:32 UTC
*** Bug 370912 has been marked as a duplicate of this bug. ***
Comment 2 Martin Flöser 2016-10-15 12:13:06 UTC
The duplicate bug report has a nice video linked.
Comment 3 Martin Flöser 2017-01-05 20:15:14 UTC
*** Bug 374607 has been marked as a duplicate of this bug. ***
Comment 4 Martin Flöser 2017-01-11 16:13:36 UTC
*** Bug 374878 has been marked as a duplicate of this bug. ***
Comment 5 Michael D 2017-02-04 11:35:09 UTC
Still present in plasma 5.9. Almost filed a duplicate :)
Comment 6 Michael D 2017-02-04 11:39:38 UTC
I meant to add that this does not happen with all windows. E.g. kmail, kate, and firefox don't disappear. However, konsole, dolphin, system settings and steam do.
Comment 7 Josep Febrer 2017-02-04 11:47:52 UTC
MichaelD have you checked if kmail, kate, and firefox windows are maximized? Because if they are, any window that is maximized don't disappear, but if they are not maximized is where they disappear.
I tested also with Plasma 5.9 and still happens as described in the original report.
Comment 8 Michael D 2017-02-04 14:26:10 UTC
None of my windows are maximized.
Comment 9 antonio.guadagnin 2017-02-05 13:10:08 UTC
This problem occurs only if the flag "Use present windows effects to layout the windows" is checked under system setting configuration ("desktop effects" / "desktop grid").
Comment 10 Martin Flöser 2017-03-24 06:10:27 UTC
*** Bug 377990 has been marked as a duplicate of this bug. ***
Comment 11 Martin Flöser 2017-08-06 15:00:10 UTC
*** Bug 383186 has been marked as a duplicate of this bug. ***
Comment 12 Sarmad 2018-07-25 00:57:41 UTC
This bug is still reproducible on 5.12 (Kubuntu 18.04)
Comment 13 DimanNe 2018-08-30 20:29:58 UTC
Any progress? The bug is still here...
Comment 14 Vlad Zahorodnii 2018-08-31 08:59:43 UTC
It looks like this bug is reproducible only when using the Present Windows effect to layout windows.
Comment 15 Vlad Zahorodnii 2018-08-31 09:00:37 UTC
(In reply to antonio.guadagnin from comment #9)
> This problem occurs only if the flag "Use present windows effects to layout
> the windows" is checked under system setting configuration ("desktop
> effects" / "desktop grid").

Oh, didn't notice it.
Comment 16 Vlad Zahorodnii 2018-10-26 08:25:26 UTC
Git commit 91b538105ad312ed035fb7a0e3d798e88a2ae6f7 by Vlad Zagorodniy, on behalf of Erik Kurzinger.
Committed on 26/10/2018 at 08:19.
Pushed by vladz into branch 'Plasma/5.14'.

[effects/desktopgrid] Specify screen projection matrix when drawing moving window

Summary:
Currently, when the user is moving a window in the desktop grid it is drawn from
the paintScreen function to ensure it appears above all other windows. However,
when drawing the window, the screenProjectionMatrix for the WindowPaintData structure
is never specified. Because of this, the window will not be visible if OpenGL
compositing along with Lanczos scaling are in use since its coordinates will never
be projected into screen-space (unless the window is maximized, in which case the
scaling code is bypassed).
Related: bug 361371

FIXED-IN: 5.14.3

Test Plan:
Ensure OpenGL compositing is enabled and the scaling method is set to "Accurate" on
hardware supporting this option. Additionally, ensure the desktop grid effect is
active and is configured to use Present Windows. Open a window and ensure is it not
maximized. Click on the window and drag it around - its contents should remain visible
the entire time and follow the mouse.

Reviewers: #kwin, zzag, graesslin, davidedmundson

Reviewed By: #kwin, zzag, davidedmundson

Subscribers: broulik, davidedmundson, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16430

M  +1    -1    effects/desktopgrid/desktopgrid.cpp

https://commits.kde.org/kwin/91b538105ad312ed035fb7a0e3d798e88a2ae6f7
Comment 17 Vlad Zahorodnii 2018-10-26 08:36:29 UTC
Git commit 408ed80604bb52870469a4f76704c224e15c02aa by Vlad Zagorodniy, on behalf of Erik Kurzinger.
Committed on 26/10/2018 at 08:30.
Pushed by vladz into branch 'Plasma/5.12'.

[effects/desktopgrid] Specify screen projection matrix when drawing moving window

Summary:
Currently, when the user is moving a window in the desktop grid it is drawn from
the paintScreen function to ensure it appears above all other windows. However,
when drawing the window, the screenProjectionMatrix for the WindowPaintData structure
is never specified. Because of this, the window will not be visible if OpenGL
compositing along with Lanczos scaling are in use since its coordinates will never
be projected into screen-space (unless the window is maximized, in which case the
scaling code is bypassed).
Related: bug 361371

FIXED-IN: 5.14.3

Test Plan:
Ensure OpenGL compositing is enabled and the scaling method is set to "Accurate" on
hardware supporting this option. Additionally, ensure the desktop grid effect is
active and is configured to use Present Windows. Open a window and ensure is it not
maximized. Click on the window and drag it around - its contents should remain visible
the entire time and follow the mouse.

Reviewers: #kwin, zzag, graesslin, davidedmundson

Reviewed By: #kwin, zzag, davidedmundson

Subscribers: broulik, davidedmundson, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16430

M  +1    -1    effects/desktopgrid/desktopgrid.cpp

https://commits.kde.org/kwin/408ed80604bb52870469a4f76704c224e15c02aa