Bug 378114 - After trying kde with wayland, compositor on xorg is broken with opengl, have to use xrender to see the effects
Summary: After trying kde with wayland, compositor on xorg is broken with opengl, have...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: platform-wayland-nested (show other bugs)
Version: 5.9.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://phabricator.kde.org/D5285
Keywords:
: 378762 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-26 16:36 UTC by Keziolio
Modified: 2017-04-14 16:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
mgraesslin: ReviewRequest+


Attachments
kwinrc (700 bytes, text/plain)
2017-04-02 17:03 UTC, Keziolio
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***