Bug 378114

Summary: After trying kde with wayland, compositor on xorg is broken with opengl, have to use xrender to see the effects
Product: [Plasma] kwin Reporter: Keziolio <keziolio123>
Component: platform-wayland-nestedAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: elvis.angelaccio
Priority: NOR Flags: mgraesslin: ReviewRequest+
Version: 5.9.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://phabricator.kde.org/D5285
Latest Commit: Version Fixed In:
Attachments: kwinrc

Description Keziolio 2017-03-26 16:36:17 UTC
On an intel laptop with mesa drivers.

Only xrender shows the effects (blur around windows, transparency, animations, etc)
With opengl, both 2.0 and 3.1, it doesn't, used to work before i tried to open wayland, it's broken in xorg now.
Comment 1 Martin Flöser 2017-04-02 16:00:36 UTC
please attach your ~/.config/kwinrc
Comment 2 Keziolio 2017-04-02 17:03:46 UTC
Created attachment 104848 [details]
kwinrc
Comment 3 Martin Flöser 2017-04-02 19:31:40 UTC
Please remove the line
GLPlatformInterface=egl

And try to switch to OpenGL again.

Did you change compositor settings in the wayland session?
Comment 4 Keziolio 2017-04-02 20:07:03 UTC
Removing that line fixed the issue, opengl now works on xorg, I don't know if I changed compositor settings:

I tried now to go xorg -> wayland -> xorg without touching anything and the problem did not occur.

Tried to change from opengl 3.1 to 2.0 on wayland and it crashed on me with a black screen, so I don't really know what happened

By the way, I don't see an option to change egl related stuff on the panel (i'm not sure if there was such a thing in te past?) but I have not touched anything that wasn't on the gui. That line appeared on its own.

Thanks for the support
Comment 5 Martin Flöser 2017-04-03 05:06:45 UTC
Patch to no longer write the config value at https://phabricator.kde.org/D5285
Comment 6 Martin Flöser 2017-04-04 17:38:21 UTC
Git commit a936516107579df13362f6d2d6f91f26a447d6dd by Martin Gräßlin.
Committed on 04/04/2017 at 17:38.
Pushed by graesslin into branch 'Plasma/5.9'.

[kcmkwin/compositing] Do not write GLPlatformInterface config

Summary:
The gui element to select the platform interface is dropped. Thus we
should not store the config for it. This is rather important as changing
compositor settings on Wayland would result in egl being written into the
config which potentially breaks an X11 session.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

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

M  +0    -4    kcmkwin/kwincompositing/compositing.cpp

https://commits.kde.org/kwin/a936516107579df13362f6d2d6f91f26a447d6dd
Comment 7 Elvis Angelaccio 2017-04-14 16:35:27 UTC
*** Bug 378762 has been marked as a duplicate of this bug. ***