Bug 396055

Summary: Multiscreen Wayland: Blur effect broken
Product: [Plasma] kwin Reporter: Kamil Piwowarski <9luty1992>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vlad.zahorodnii
Priority: NOR Flags: vlad.zahorodnii: Wayland+
vlad.zahorodnii: X11-
Version: 5.13.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Wayland session
X session
Wayland session - 2 monitors
Kate and Dolphin behind Konsole
Window under console
kwin_wayland without plasma
wayland - vertically aligned to the top
aligned to the left
Demo to my previous comment

Description Kamil Piwowarski 2018-07-01 15:32:22 UTC
Using latest Manjaro with Plasma 5.13.2

Steps:

1. Run Konsole with blur background enabled on wayland session. 
2. On first monitor it looks ok, but on next screens there are random glitches.
3. Test again on X session - it works perfectly.
Comment 1 Kamil Piwowarski 2018-07-01 15:33:15 UTC
Created attachment 113682 [details]
Wayland session
Comment 2 Kamil Piwowarski 2018-07-01 15:33:32 UTC
Created attachment 113683 [details]
X session
Comment 3 Vlad Zahorodnii 2018-07-01 15:44:57 UTC
Please attach output of
qdbus org.kde.KWin /KWin supportInformation
Comment 4 Kamil Piwowarski 2018-07-01 15:45:28 UTC
Created attachment 113684 [details]
Wayland session - 2 monitors

It looks like background is copied only from first monitor
Comment 5 Kamil Piwowarski 2018-07-01 15:49:11 UTC
(In reply to Vlad Zagorodniy from comment #3)
> Please attach output of
> qdbus org.kde.KWin /KWin supportInformation

https://paste.kde.org/pfuwbei63
Comment 6 Vlad Zahorodnii 2018-07-01 15:50:24 UTC
kamil@kamil-pc:~ :-)qdbus org.kde.KWin /KWin supportInformation
Informacje o wsparciu dla KWin:
Pytając  na np. http://forum.kde.orgużyj wyświetlanych tu danych.
Dostarczają one informacji o obecnie uruchomionym wystąpieniu, o opcjach, które są używane,
o używanym sterowniku OpenGL i o włączonych efektach.
Proszę wysłać te informacje, pod tekstem wprowadzenia, przy użyciu usługi paste bin
takiej jak http://paste.kde.org, aby nie zaśmiecać wątku.

==========================

Version
=======
KWin version: 5.13.2
Qt Version: 5.11.1
Qt compile version: 5.11.1
XCB compile version: 1.13

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11906000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Lato,10,-1,5,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: DRM
Active: true
Atomic Mode Setting: true

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2
windowsBlockCompositing: false

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 2

Screen 0:
---------
Name: PHL VGA-1-PHL 223V5/UK0134500133
Geometry: 1920,0,1920x1080
Scale: 1
Refresh Rate: 60

Screen 1:
---------
Name: BNQ HDMI-A-1-BenQ DL2215/33E01198SL0
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL version string: 4.2 (Core Profile) Mesa 18.1.3
OpenGL platform interface: EGL
OpenGL shading language version string: 4.20
Driver: Intel
GPU class: IvyBridge
OpenGL version: 4.2
GLSL version: 4.20
Mesa version: 18.1.3
Linux kernel version: 4.17.3
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
kwin4_effect_frozenapp
kwin4_effect_windowaperture
kwin4_effect_login
kwin4_effect_translucency
kwin4_effect_dialogparent
kwin4_effect_maximize
kwin4_effect_logout
kwin4_effect_morphingpopups
kwin4_effect_fade
slidingpopups
slide
screenshot
minimizeanimation
desktopgrid
colorpicker
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
kwin4_effect_fade
blur
contrast

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

kwin4_effect_frozenapp:

kwin4_effect_windowaperture:

kwin4_effect_login:

kwin4_effect_translucency:

kwin4_effect_dialogparent:

kwin4_effect_maximize:

kwin4_effect_logout:

kwin4_effect_morphingpopups:

kwin4_effect_fade:

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

slide:

screenshot:

minimizeanimation:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

colorpicker:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

blur:
blurRadius: 12
cacheTexture: true

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 7 Vlad Zahorodnii 2018-07-01 15:59:59 UTC
Created attachment 113686 [details]
Kate and Dolphin behind Konsole

Do normal windows look okay behind Konsole? (like on the attached screenshot)
Comment 8 Kamil Piwowarski 2018-07-01 16:15:07 UTC
Created attachment 113687 [details]
Window under console

On first monitor - yes.
Comment 9 Kamil Piwowarski 2018-07-01 19:38:50 UTC
Created attachment 113689 [details]
kwin_wayland without plasma

I was doing some testing and experiments and when I run kwin_wayland remotely by ssh `XDG_SESSION_ID=c2 QT_QPA_PLATFORM=wayland kwin_wayland --libinput --exit-with-session=konsole` it almost works as expected. Almost, because you can see "lines" between screens.
Comment 10 Kamil Piwowarski 2018-07-01 20:29:11 UTC
Created attachment 113690 [details]
wayland - vertically aligned to the top

Another bug - on vertically stacked screens (aligned to the top). See screenshot.
Comment 11 Kamil Piwowarski 2018-07-01 20:36:09 UTC
Created attachment 113691 [details]
aligned to the left

Only bottom monitor is ok
Comment 12 Vlad Zahorodnii 2018-07-01 21:24:21 UTC
I think this bug is caused by

const int yTranslate = effects->virtualScreenSize().height() - screen.height() - screen.y();

it essentially "pulls" screen content down. Still, I'm not sure why this bug is not reproducible when launching windowed kwin_wayland.

Interesting.
Comment 13 Vlad Zahorodnii 2018-07-01 21:26:41 UTC
Created attachment 113692 [details]
Demo to my previous comment
Comment 14 Kamil Piwowarski 2018-07-01 23:18:48 UTC
I am so stupid ;/ Sorry for wasting your time. Everything is ok.

Some months ago I've testing multiscreen setup and I've created backup of `/usr/lib64/libkwin4_effect_builtins.so.1` --> `/usr/lib64/libkwin4_effect_builtins.so.1.bak`. When testing I've changed symlink from `/usr/lib64/libkwin4_effect_builtins.so.1.0.0` to point `/usr/lib64/libkwin4_effect_builtins.so.1.bak`. During updates symlinks didn't changed. So I was using old file libkwin4_effect_builtins.so and that was a problem.

*** This bug has been marked as a duplicate of bug 393723 ***