Wayland support in mainline

Hola,

Firstly thanks to Joel, Benjamin, Scott, Gabriel et al. for cooking up a
Wayland driver and integrating it nicely with SDL’s EGL support.

I got a Jolla handset (http://jolla.com) when I was in Finland a few weeks
ago; possibly the first consumer device with a full Wayland stack + Qt5
compositor, and for the last week I was trying out SDL with the old Wayland
tree. Originally there was a large chunk of code added by Thomas Perl (of
Jolla) which added support for the QtWayland extensions, that seems to have
not been included.

Are there plans to add this code to the mainline as well? There’s no
additional library dependency on Qt or anything, the code is a bunch of
struct definitions that get passed to Wayland. Without them there’s no
touch input, for instance. Also without the Qt surface listener to trigger
SDL_WINDOWEVENT_CLOSE, upon closing a window the program will either hang,
or try and draw to a dead surface and SIGABRT.

2013/12/15 Scott Percival

Hola,

Firstly thanks to Joel, Benjamin, Scott, Gabriel et al. for cooking up a
Wayland driver and integrating it nicely with SDL’s EGL support.

I got a Jolla handset (http://jolla.com) when I was in Finland a few
weeks ago; possibly the first consumer device with a full Wayland stack +
Qt5 compositor, and for the last week I was trying out SDL with the old
Wayland tree. Originally there was a large chunk of code added by Thomas
Perl (of Jolla) which added support for the QtWayland extensions, that
seems to have not been included.

Are there plans to add this code to the mainline as well? There’s no
additional library dependency on Qt or anything, the code is a bunch of
struct definitions that get passed to Wayland. Without them there’s no
touch input, for instance. Also without the Qt surface listener to trigger
SDL_WINDOWEVENT_CLOSE, upon closing a window the program will either hang,
or try and draw to a dead surface and SIGABRT.

We made the decision to remove the QT stuff for now because I had no way to
test it, and because the licenses on that part of the source code were not
the standard SDL license (zlib with copyright assigned to Sam), there was
one file with zlib and copyright assigned to Jolla and the autogenerated
files are BSD licensed. If you are interested in contacting the author and
figuring out a way we can incorporate Thomas changes after testing them in
that fancy phone of yours :P, I’ve kept the changeset for that in a
separate patch just in case :)–
Gabriel.