Bug 392693 - [wayland] - Blur effect isnt applied under wayland
Summary: [wayland] - Blur effect isnt applied under wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.13.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-03 22:04 UTC by Michail Vourlakos
Modified: 2024-03-07 14:14 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
supportInformation (5.89 KB, application/octet-stream)
2018-11-28 19:52 UTC, Andrius Štikonas
Details
WAYLAND_DEBUG=1 konsole (41.05 KB, text/plain)
2018-11-29 00:20 UTC, Andrius Štikonas
Details
supportInformation output (6.07 KB, text/plain)
2019-10-04 15:22 UTC, Marcus Harrison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Vourlakos 2018-04-03 22:04:58 UTC
The Blur kwin effect even though it works perfectly under X11,
under wayland isnt applied at all.

Maybe there isnt a protocol yet?
Comment 1 Martin Flöser 2018-04-04 04:16:44 UTC
Blur works just fine for me.
Comment 2 Michail Vourlakos 2018-04-04 06:30:32 UTC
(In reply to Martin Flöser from comment #1)
> Blur works just fine for me.

Martin any idea where to look for this?
Comment 3 Martin Flöser 2018-04-04 15:27:05 UTC
Is this a problem with a specific app which isn't blurred or a general problem?
Comment 4 Michail Vourlakos 2018-04-04 15:38:53 UTC
(In reply to Martin Flöser from comment #3)
> Is this a problem with a specific app which isn't blurred or a general
> problem?

a general one. This is how plasma is looking under wayland in my system. Blur is enabled and I disabled the background contrast effects. This is happening also with wayland-master version. Under X11 blur is going just fine both for 5.12 and master version.

https://drive.google.com/file/d/1aef4qyJVaB8X_NkgVQgTfBT42IJaWP7R/view?usp=sharing
Comment 5 Michail Vourlakos 2018-04-08 17:35:25 UTC
just to add here that if under wayland I start plasmashell with xcb: "plasmashell -platform xcb" then in that case blur is applied correctly
Comment 6 Martin Flöser 2018-04-08 18:16:27 UTC
Afaik the blur is only enabled by plasma if background contrast is also enabled. Please check whether enabling background contrast fixes the issue.
Comment 7 Michail Vourlakos 2018-04-08 19:34:33 UTC
(In reply to Martin Flöser from comment #6)
> Afaik the blur is only enabled by plasma if background contrast is also
> enabled. Please check whether enabling background contrast fixes the issue.

it didnt helped both for (master) and (5.12.4) versions in wayland.
Under XCB blur is applied correctly with or without Background contrast both for (master) and (5.12.4)
Comment 8 Martin Flöser 2018-04-09 07:10:41 UTC
Please provide the output of qdbus org.kde.KWin /KWin supportInformation
Comment 9 Michail Vourlakos 2018-04-09 08:04:20 UTC
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

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

Version
=======
KWin version: 5.12.4
Qt Version: 5.10.0
Qt compile version: 5.10.0
XCB compile version: 1.11.1

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes                                                                                                                                                              
KWIN_BUILD_TABBOX: yes                                                                                                                                                                   
KWIN_BUILD_ACTIVITIES: yes                                                                                                                                                               
HAVE_INPUT: 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: 11804000                                                                                                                                                                 
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: false
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 
decorationButtonsRight: 3, 5
borderSize: 0
gridUnit: 12
font: Aka-AcidGR-Muli,12,-1,5,50,0,0,0,0,0,Medium
smallSpacing: 3
largeSpacing: 12

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: true
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: 99
glPlatformInterface: 2
windowsBlockCompositing: false

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

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

Screen 0:
---------
Name: DEL HDMI-A-1-DELL UP2716D/KRXTR73M581L
Geometry: 0,0,2560x1440
Scale: 1
Refresh Rate: 59.951


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) 
OpenGL version string: 4.5 (Core Profile) Mesa 17.2.8
OpenGL platform interface: EGL
OpenGL shading language version string: 4.50
Driver: Intel
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 17.2.8
Linux kernel version: 4.13
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_login
kwin4_effect_morphingpopups
kwin4_effect_logout
dimscreen
kwin4_effect_translucency
kwin4_effect_frozenapp
kwin4_effect_windowaperture
kwin4_effect_fade
slidingpopups
wobblywindows
slideback
screenshot
minimizeanimation
flipswitch
cubeslide
cube
coverswitch
colorpicker
sheet
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

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

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

kwin4_effect_login:

kwin4_effect_morphingpopups:

kwin4_effect_logout:

dimscreen:

kwin4_effect_translucency:

kwin4_effect_frozenapp:

kwin4_effect_windowaperture:

kwin4_effect_fade:

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

wobblywindows:
stiffness: 0.14
drag: 0.67
moveFactor: 0.16
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveEffectEnabled: true
openEffectEnabled: false
closeEffectEnabled: false
moveWobble: true
resizeWobble: true

slideback:

screenshot:

minimizeanimation:

flipswitch:
tabBox: false
tabBoxAlternative: false
duration: 200
angle: 2
xPosition: 0.2199999988079071
yPosition: 1
windowTitle: true

cubeslide:
rotationDuration: 500
dontSlidePanels: true
dontSlideStickyWindows: false
usePagerLayout: true
useWindowMoving: false

cube:
cubeOpacity: 0.800000011920929
opacityDesktopOnly: false
displayDesktopName: true
reflection: true
rotationDuration: 500
backgroundColor: #000000
capColor: #eff0f1
paintCaps: true
closeOnMouseRelease: false
zPosition: 100
useForTabBox: false
invertKeys: false
invertMouse: false
capDeformationFactor: 0
useZOrdering: false
texturedCaps: true

coverswitch:
animationDuration: 250
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 221
primaryTabBox: true
secondaryTabBox: false

colorpicker:

sheet:
duration: 500

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: 11
cacheTexture: false

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 10 Michail Vourlakos 2018-06-28 18:25:43 UTC
more info about this...

when I reported this I was in KDE Neon, today I switched to TumbleWeed and the issue remains but I found a way to solve temporarily.

1. User logs in wayland and blur effect does not work
2. User changes any setting wants for the blur effect from plasma systemsettings and blur functions properly
3. If the user returns the blur settings to the one that were the first used during log in the blur effect still works ok


So because blur effect in plasma 5.12 is different than the plasma 5.13 I can guess the following. For some reason the blur effect isnt activated during startup/login. The 5.12 implementation sticks to that disable because it trusts that blur effect shouldnt work. On the other hand 5.13 implementation when altering any blur effect setting it checks again if it can activate the blur effect and that time it can.

The above is just a guess of course.
Comment 11 Patrick Silva 2018-09-16 21:38:15 UTC
I have two computers, blur effect is not working correctly under Wayland on both.
I have both blur and transparency effects enabled, sometimes blur effect stops working and menus become transparent.

I can reproduce:
open kate
click "File" in menu bar
while the "File" menu is still open, move cursor through the menu bar
The hovered menus open transparent

computer A: neon dev unstable, intel hd 4000, modesetting driver
computer B: Arch Linux, plasma 5.14 beta, intel hd graphics, modesetting driver
Comment 12 tromzy 2018-09-19 08:16:28 UTC
Maybe not the same bug, but on my end, the Blur effect works on Wayland, except in Kvantum theme engine.
Comment 13 Andrius Štikonas 2018-11-12 20:52:57 UTC
Blur also doesn't work for me. I have background contrast effect enabled, but on dual screen setup I have one screen completely disabled.
Comment 14 Andrius Štikonas 2018-11-28 01:27:04 UTC
(In reply to Andrius Štikonas from comment #13)
> Blur also doesn't work for me. I have background contrast effect enabled,
> but on dual screen setup I have one screen completely disabled.

To be more precise, in my case blur is sometimes not applied. E.g. everything under plasma bar is blured but when I move windows, blur is not applied.
Comment 15 Vlad Zahorodnii 2018-11-28 09:46:48 UTC
(In reply to Andrius Štikonas from comment #14)
> To be more precise, in my case blur is sometimes not applied. E.g.
> everything under plasma bar is blured but when I move windows, blur is not
> applied.

Please post output of
Comment 16 Vlad Zahorodnii 2018-11-28 09:47:01 UTC
qdbus org.kde.KWin /KWin supportInformation
Comment 17 Andrius Štikonas 2018-11-28 19:52:14 UTC
Created attachment 116555 [details]
supportInformation

So apparently in my case blur sometimes works but sometimes doesn't (e.g. yesterday it was working, today it stopped). At the moment I'm not sure what causes it to fail.
Comment 18 Andrius Štikonas 2018-11-28 20:05:13 UTC
(In reply to Andrius Štikonas from comment #17)
> Created attachment 116555 [details]
> supportInformation
> 
> So apparently in my case blur sometimes works but sometimes doesn't (e.g.
> yesterday it was working, today it stopped). At the moment I'm not sure what
> causes it to fail.

Ok, some further debugging shows that blur is fixed when I uncheck it in system settings, apply settings, reenable blur and apply. Until next logout...

So it's simply not enable on boot.
Comment 19 Andrius Štikonas 2018-11-29 00:20:16 UTC
Created attachment 116560 [details]
WAYLAND_DEBUG=1 konsole
Comment 20 Vlad Zahorodnii 2018-11-29 21:12:21 UTC
Hmm, given the debug output I don't see a reason why blur is not working.
Comment 21 Andrius Štikonas 2018-12-02 01:17:54 UTC
(In reply to Vlad Zagorodniy from comment #20)
> Hmm, given the debug output I don't see a reason why blur is not working.

I did some more testing. The crucial thing seems to be that one output is disabled in my case (laptop monitor ies turned off in systemsettings, only external HDMI is used).

When I booted with external screen unplugged, so laptop's screen was used, blur was enabled on boot without any further workarounds.
Comment 22 Andrius Štikonas 2018-12-02 01:25:14 UTC
After I booted with just laptop screen and blur was working, I plugged in my external screen, this caused laptop screen to turn off. External screen had no blur.

So I think somehow blur is lost during output switching. And it doesn't matter whether it happens during plasma boot or later.
Comment 23 Andrius Štikonas 2018-12-02 11:08:52 UTC
(In reply to Andrius Štikonas from comment #22)
> After I booted with just laptop screen and blur was working, I plugged in my
> external screen, this caused laptop screen to turn off. External screen had
> no blur.
> 
> So I think somehow blur is lost during output switching. And it doesn't
> matter whether it happens during plasma boot or later.

When booting with 2 screens on, blur works. So I think this confirms that something bad happens when output is switched off.
Comment 24 Marcus Harrison 2019-10-04 15:22:49 UTC
Created attachment 123014 [details]
supportInformation output

This bug appears to be the same as the one I'm experiencing but I get different symptoms.

In my case, plasma shell panels/pop-ups and translucent KWin decorations are blurred correctly. However, setting translucency in Konsole does not apply the blur. Starting Konsole with `konsole -platform xcb` applies the blur correctly.

Additionally, translucent KVantum themes are not blurred.

Attached supportInformation output.
Comment 25 Andrius Štikonas 2019-12-25 11:24:14 UTC
(In reply to Andrius Štikonas from comment #23)
> (In reply to Andrius Štikonas from comment #22)
> > After I booted with just laptop screen and blur was working, I plugged in my
> > external screen, this caused laptop screen to turn off. External screen had
> > no blur.
> > 
> > So I think somehow blur is lost during output switching. And it doesn't
> > matter whether it happens during plasma boot or later.
> 
> When booting with 2 screens on, blur works. So I think this confirms that
> something bad happens when output is switched off.

When I upgraded to Plasma 5.17.4 (from Plasma 5.16.5) blur is now applied on my system.
Comment 26 Roman Gilg 2019-12-25 12:20:02 UTC
(In reply to Andrius Štikonas from comment #25)
> When I upgraded to Plasma 5.17.4 (from Plasma 5.16.5) blur is now applied on
> my system.

Can you confirm Michail that the issue is gone in most recent version of Plasma for you too?
Comment 27 Michail Vourlakos 2019-12-26 22:04:19 UTC
(In reply to Roman Gilg from comment #26)
> (In reply to Andrius Štikonas from comment #25)
> > When I upgraded to Plasma 5.17.4 (from Plasma 5.16.5) blur is now applied on
> > my system.
> 
> Can you confirm Michail that the issue is gone in most recent version of
> Plasma for you too?

yes I believe it is fixed... at latest Plasma versions I can not reproduce this issue.
Comment 28 acidrums4 2021-12-15 16:29:18 UTC
Sorry for the noise - blur is not working for me with Wayland here with 5.23 (nor 5.22, nor 5.21, nor 5.20). It works fine with X11. Both blur and background contrast effects are enabled. Still, when using Wayland the only blurred thing I can see is the background of the lock screen.

The weird thing is that with my older PC it worked, but not sure why in this one it won't. Using an integrated Intel graphics card.

I sincerely don't know what is going on, as this allegedly was fixed - no answers after asking on Reddit, KDE or Gentoo forums. The output of my qdbus org.kde.KWin /KWin supportInformation can be found in https://pastebin.com/YfvcUrnh
Comment 29 Oded Arbel 2024-03-05 23:44:04 UTC
I may be missing something, but for me the blur desktop effect only works on windows that have transparent areas (such as Konsole when I use a theme with a transparent background), but it doesn't work at all on windows where I set them to lower opacity by kwin rules or kwin window actions.

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Comment 30 Vlad Zahorodnii 2024-03-07 14:10:02 UTC
> but it doesn't work at all on windows where I set them to lower opacity by kwin rules

lowering the opacity is not enough, the application should also request blur. konsole does it. that's unrelated issue though.
Comment 31 Oded Arbel 2024-03-07 14:14:48 UTC
(In reply to Vlad Zahorodnii from comment #30)
> > but it doesn't work at all on windows where I set them to lower opacity by kwin rules
> 
> lowering the opacity is not enough, the application should also request
> blur. konsole does it. that's unrelated issue though.

I wish there was a kwin window rule property that you can ask to "blur behind this transparent window".