Revision 9cc9fa8...

Go back to digest for 19th May 2013

Features in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Egl Backend using a Wayland surface for rendering

This backend is able to composite on a Wayland surface instead of an X11
overlay window. It can be considered as a prototype for a Wayland session

For texture from X11 pixmap the backend uses XShm. This is far from
optimal, but the KHR_image_pixmap extension is not available in Mesa's
Wayland backend. It's a temporary solution till we have XWayland and
texture from Wayland buffer.

To use this backend one needs to specify the environment variable
KWIN_OPENGL_INTERFACE with "egl_wayland". In future KWin should probably
use this backend if the Wayland display env variable is defined.

To use this setup:
1. Have a normal X-Server running on e.g. VT7
2. Start Weston on VT1
3. Start a terminal on Weston
4. start KWin with:

DISPLAY=:0 KWIN_OPENGL_INTERFACE=egl_wayland kwin --replace &

This should map a Wayland surface to Weston showing the content of the X
setup. At the moment it's not yet possible to interact with the surface
as input events are not yet recieved in the backend.

There are still a lot of limitations as documented in the code.

File Changes

Added 2 files
  •   kwin/egl_wayland_backend.cpp
  •   kwin/egl_wayland_backend.h
Modified 4 files
  •   kwin/CMakeLists.txt
  •   kwin/compositingprefs.cpp
  •   kwin/scene_opengl.cpp
  •   kwin/scene_opengl.h
6 files changed in total