Bug 362360 - When switching virtual desktops with the Desktop Cube Animation effect, the Blur and Background Contrast effect cause visual artifacts in the upper right quarter of the screen
Summary: When switching virtual desktops with the Desktop Cube Animation effect, the B...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 5.6.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 373036 398438 401387 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-27 16:48 UTC by Olivier Churlaud
Modified: 2018-11-25 11:49 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.15.0


Attachments
A part of what happens (469.78 KB, image/png)
2016-04-27 16:48 UTC, Olivier Churlaud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Churlaud 2016-04-27 16:48:45 UTC
Created attachment 98643 [details]
A part of what happens

When I switch my virtual desktops, a dark rectangle appears on the top right side (see picture).

On the picture one cannot see that in the same time all elements of the panel are one above an other, with low opacity.

I don't know how to debug further and give more info.
Comment 1 Olivier Churlaud 2016-06-26 17:32:33 UTC
Still nothing?
Comment 2 Olivier Churlaud 2016-06-26 18:30:17 UTC
Other relevant info asked on IRC

from lspci

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)

Kernel driver in use: i915
Comment 3 Olivier Churlaud 2016-06-26 22:38:20 UTC
I forgot to say: I'm using the cube animation.

Following the advice of crazy on irc, I booted with 'nomodeset i915.modeset=0'. The glitch disappeared (but I don't have any the animation anymore)
Comment 4 Olivier Churlaud 2016-06-26 22:52:19 UTC
More Info
========
Computer:
DELL Inspiron 4000 - Series 7437

OS:
ArchLinux, up to date

Soft versions:
Linux OLINUX 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux
xorg-server 1.18.3-2 
xf86-video-intel 1:2.99.917+668+gc28e62f-1
Comment 5 AndreasH59 2016-06-29 17:41:59 UTC
Same here. With Kubuntu 16.04 + backports and fresh Neon on 2 Machines.
It happens only with the bar at the top and Cube.
https://www.youtube.com/watch?v=kuzkPIZcTzI

Graphics:  Card: NVIDIA GM204 [GeForce GTX 970]
           Display Server: X.Org 1.18.3 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 970/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 361.42
Comment 6 Olivier Churlaud 2016-07-07 08:24:51 UTC
The glitch is now different: only a black band between the two desktops during the cube animation. It's already better, and it shows that it's mostly a hardware issue.
Comment 7 Olivier Churlaud 2016-07-27 09:25:19 UTC
It is back since 5.7.2 :S

Like in AndreasH59 video
Comment 8 Martin Flöser 2016-08-29 09:33:38 UTC
looks like bug 361511
Comment 9 Olivier Churlaud 2016-10-12 09:15:40 UTC
Andreas, is it still the case on Plasma 5.8? because it is for me...
Comment 10 AndreasH59 2016-10-12 09:28:09 UTC
yes, its still there
Comment 11 Martin Flöser 2016-11-28 16:08:19 UTC
*** Bug 373036 has been marked as a duplicate of this bug. ***
Comment 12 bit 2018-04-19 12:50:54 UTC
i have the same bug on a dell inspiron 7559:
a black rectangle appear on the upper right side of the screen when i switch virtual desktop using the cube animation.
Comment 13 Vlad Zahorodnii 2018-09-10 19:45:00 UTC
*** Bug 398438 has been marked as a duplicate of this bug. ***
Comment 14 Igor Poboiko 2018-09-14 09:39:22 UTC
Git commit ca1b5ea1070ccd23dd742f35d449e4a531ff7951 by Igor Poboiko.
Committed on 14/09/2018 at 09:36.
Pushed by poboiko into branch 'master'.

[effects/cubeslide] Fix visual glitches with Blur / BackgroundContrast effect

Summary:
Bugs occurred because KWin was not very happy when windows were painted during CubeSlideEffect::paintScreen().
Another issue is that blur, although it was supposed to, did not work at all (haven't found appropriate bug on bugzilla).
As well as background contrast effect.

This patch does the following thing:

 - Adopted WindowForceBlur / WindowForceBackgroundContrast logic from SlideEffect, instead of panels/stickyWindows QSets (those become useless anyway)
 - Added shouldAnimate code, which determines whether a window should be animated with the cube (i.e. ordinary windows) or should stick (i.e. panels or pinned windows, if corresponding options are checked in the settings)
 - It paints an additional non-transformed screen, on which it paints only "sticky" windows. This is done because otherwise KWin would apply blur not behind the OSD, but on the same place on moving cube face.
 - (in addition) switched to new Qt5 connect syntax.

Reviewers: #kwin, zzag

Differential Revision: https://phabricator.kde.org/D15175
Related: bug 361516
FIXED-IN: 5.15.0

M  +87   -54   effects/cube/cubeslide.cpp
M  +10   -3    effects/cube/cubeslide.h

https://commits.kde.org/kwin/ca1b5ea1070ccd23dd742f35d449e4a531ff7951
Comment 15 Vlad Zahorodnii 2018-11-25 11:49:30 UTC
*** Bug 401387 has been marked as a duplicate of this bug. ***