# Wayland Server

**URL:** <https://blenderartists.org/t/wayland-server/557902>\
**Category:** Beginning Blender Code and Development\
**Created:** [November 26, 2012, 10:26am UTC](https://blenderartists.org/t/wayland-server/557902 "2012-11-26T10:26:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blendermad](https://blenderartists.org/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@blendermad](https://blenderartists.org/u/blendermad)\
**Post date:** [November 26, 2012, 10:26am UTC](https://blenderartists.org/t/wayland-server/557902/1 "2012-11-26T10:26:19Z")

</div>

In linux platforms, does blender still use X-server and GLX. with Clutter ported to Wayland. I’m assuming that it supports full OpenGL(or it just XWayland??). I read a post on wayland-devel mailing list about ideasman trying to port Blender to wayland two years ago. is it finished. latest blender code does include X specific code. doesn’t it?? If it is not done yet. I’m ready to do it. need to do some homework though.

---

<div class="post-metadata">

**Author:** ![ideasman42](https://blenderartists.org/user_avatar/blenderartists.org/ideasman42/32/900508_2.png) [@ideasman42](https://blenderartists.org/u/ideasman42)\
**Post date:** [November 27, 2012, 4:00am UTC](https://blenderartists.org/t/wayland-server/557902/2 "2012-11-27T04:00:46Z")

</div>

@blendermad, I got blender running in SDLv2.0 - Which should be able to run in Wayland, though I didnt test it yet.

Nevertheless - using SDL means we can run on any system SDL supports.

Since wayland is now 1.0+, I may check on using it directly.

---

<div class="post-metadata">

**Author:** ![blendermad](https://blenderartists.org/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@blendermad](https://blenderartists.org/u/blendermad)\
**Post date:** [December 1, 2012, 4:00am UTC](https://blenderartists.org/t/wayland-server/557902/3 "2012-12-01T04:00:28Z")

</div>

I digging it a little, SDL use X backend. isn’t?? also I read on mailing lists of SDL someone posted(I am not sure), using X, the video is copied twice, from application to X-server and X-server to VRAM. isn’t that a overhead. well my point is Wayland is more modern and if it doesn’t affect blender development in anyway, what is the harm in porting to it. I’d be happy to do it, with some guidance from developers of course…

---

<div class="post-metadata">

**Author:** ![ideasman42](https://blenderartists.org/user_avatar/blenderartists.org/ideasman42/32/900508_2.png) [@ideasman42](https://blenderartists.org/u/ideasman42)\
**Post date:** [December 1, 2012, 5:37am UTC](https://blenderartists.org/t/wayland-server/557902/4 "2012-12-01T05:37:13Z")

</div>

@blendermad, no

> **[Direct Rendering Infrastructure](https://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure)**
>
> The Direct Rendering Infrastructure (DRI) is a framework for allowing direct access to graphics hardware under the X Window System in a safe, efficient way. The main use of DRI is to provide hardware acceleration for the Mesa implementation of OpenGL. DRI has also been adapted to provide OpenGL acceleration on a framebuffer console without a display server running.\[citation needed\] DRI implementation is scattered through the X Server and its associated client libraries, Mesa 3D and the Direct Ren...

But there is no harm in supporting wayland, Feel free to do this! - if you show you have basics going we can get you a branch (or you may like to use github or so - up to you).

edit - you can check on X11 and SDL ghost backends to get an idea of how to start, SDL is the most minimal so maybe better start there.

---

<div class="post-metadata">

**Author:** ![blendermad](https://blenderartists.org/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@blendermad](https://blenderartists.org/u/blendermad)\
**Post date:** [December 1, 2012, 6:13am UTC](https://blenderartists.org/t/wayland-server/557902/5 "2012-12-01T06:13:40Z")

</div>

GHOST System is the place, I should look right? I use git repo cloned from here git://gitorious.org/blenderprojects/blender.git  
Will get to you soon…

---

<div class="post-metadata">

**Author:** ![ideasman42](https://blenderartists.org/user_avatar/blenderartists.org/ideasman42/32/900508_2.png) [@ideasman42](https://blenderartists.org/u/ideasman42)\
**Post date:** [December 1, 2012, 6:05pm UTC](https://blenderartists.org/t/wayland-server/557902/6 "2012-12-01T18:05:32Z")

</div>

@blendermad

GHOST is a C++ class which handles OS specific interactions (windowing, opengl initialization, mouse/kb events)

The drawing is done in OpenGL so GHOST really doesn’t have to do all that much.

It solves similar problems as SDL and infact SDL could probably replace GHOST however their multi-window support isn’t as good (Gives opengl context switching issues, they know about this), and AFAIK SDL doesn’t handle tablet events.

- So we continue to use GHOST 🙂

Check these files…

```auto

find -name "GHOST*SDL*" | sort

./intern/ghost/intern/GHOST_DisplayManagerSDL.cpp
./intern/ghost/intern/GHOST_DisplayManagerSDL.h
./intern/ghost/intern/GHOST_SystemSDL.cpp
./intern/ghost/intern/GHOST_SystemSDL.h
./intern/ghost/intern/GHOST_WindowSDL.cpp
./intern/ghost/intern/GHOST_WindowSDL.h

```

or…

```auto

find -name "GHOST*SDL*" | sort
./intern/ghost/intern/GHOST_DisplayManagerX11.cpp
./intern/ghost/intern/GHOST_DisplayManagerX11.h
./intern/ghost/intern/GHOST_DropTargetX11.cpp
./intern/ghost/intern/GHOST_DropTargetX11.h
./intern/ghost/intern/GHOST_NDOFManagerX11.cpp
./intern/ghost/intern/GHOST_NDOFManagerX11.h
./intern/ghost/intern/GHOST_SystemPathsX11.cpp
./intern/ghost/intern/GHOST_SystemPathsX11.h
./intern/ghost/intern/GHOST_SystemX11.cpp
./intern/ghost/intern/GHOST_SystemX11.h
./intern/ghost/intern/GHOST_WindowX11.cpp
./intern/ghost/intern/GHOST_WindowX11.h

```
