Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-11

wayland support for FPC

13 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth
to ik
ik wrote 5 lines
Hello, It seems that many GUI toolkits are slowly starting to move to wayland (http://wayland.freedesktop.org/), that moved to v1.0 Is there anyone who currently working on binding for it for FPC ?

It might be better to ask this on the Lazarus list as Wayland support seems to require more than just the API binding (at least as far as I have understood it).

Regards,
Sven

Reply by email

ik
to Sven Barth
Sven Barth wrote 12 lines
On 08.11.2012 22:35, ik wrote: > > Hello, > > It seems that many GUI toolkits are slowly starting to move to wayland > (http://wayland.freedesktop.org/), that moved to v1.0 > Is there anyone who currently working on binding for it for FPC ? It might be better to ask this on the Lazarus list as Wayland support seems to require more than just the API binding (at least as far as I have understood it).

I'm not sure why, because as far as I know, it replaces the X11 protocol, not gdk, Qt etc...
It also provide compositing window manager based support - that is to create window managers (such as kwin).

But I'll ask there as well :)

Show quoted text 7 lines
Regards, Sven _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Graeme Geldenhuys
to ik
ik wrote
I'm not sure why, because as far as I know, it replaces the X11 protocol, not gdk, Qt etc...

That is how I understood it too.

A while back I thought of starting the API bindings for fpGUI's Wayland backend. But I was told that the Wayland API is still in flux. Unlike Qt or GTK, I don't have so much resources to spend on a moving target. So without having to rework bindings that are constantly being broken, I decided to hold off for a while and see when the API stabilizes.

Now that 1.0 is out... does that mean the API will be stable for a while?

Regards,
- Graeme -

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

Show quoted text 6 lines
That is how I understood it too. A while back I thought of starting the API bindings for fpGUI's Wayland backend. But I was told that the Wayland API is still in flux. Unlike Qt or GTK, I don't have so much resources to spend on a moving target.

Afaik it would also support at least the core parts of X11. It would be declared legacy, and not part of the perpetually supported Wayland set, but I think it is safe to say it will be supported for quite a while.

IOW, I wouldn't desperately try to support Wayland native at this point.

That can be done if the native api turns out to be stable, Wayland truely takes over X11, and all distros package it.

Now it is just asking for pain IMHO.

Reply by email

Sven Barth
to ik: I'm not sure why, because as far as I know, it replaces the X11 protocol, not gdk, Qt…
ik wrote 17 lines
On Thu, Nov 8, 2012 at 11:38 PM, Sven Barth wrote: > On 08.11.2012 22:35, ik wrote: >> Hello, >> >> It seems that many GUI toolkits are slowly starting to move to wayland >> (http://wayland.freedesktop.org/), that moved to v1.0 >> Is there anyone who currently working on binding for it for FPC ? > > It might be better to ask this on the Lazarus list as Wayland support seems > to require more than just the API binding (at least as far as I have > understood it). I'm not sure why, because as far as I know, it replaces the X11 protocol, not gdk, Qt etc... It also provide compositing window manager based support - that is to create window managers (such as kwin). But I'll ask there as well :)

If you use GTK or Qt you won't of course have any problem, but if you want to create a true Wayland client (like for example a LCL-Customdrawn-Wayland) you need to provide a memory buffer in which you need to render your GUI widgets so only the API alone won't make a GUI application ;)

Regards,
Sven

Reply by email

Sven Barth
to Graeme Geldenhuys: That is how I understood it too. A while back I thought of starting the API bindings for…
Graeme Geldenhuys wrote 12 lines
On 2012-11-09 09:51, ik wrote: > I'm not sure why, because as far as I know, it replaces the X11 > protocol, not gdk, Qt etc... That is how I understood it too. A while back I thought of starting the API bindings for fpGUI's Wayland backend. But I was told that the Wayland API is still in flux. Unlike Qt or GTK, I don't have so much resources to spend on a moving target. So without having to rework bindings that are constantly being broken, I decided to hold off for a while and see when the API stabilizes. Now that 1.0 is out... does that mean the API will be stable for a while?

At least the developers said (with the prerelease versions already) that they won't do incompatible changes anymore (at least not in the v1 series ;) ).

Regards,
Sven

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Afaik it would also support at least the…
Marco van de Voort wrote 6 lines
IOW, I wouldn't desperately try to support Wayland native at this point. That can be done if the native api turns out to be stable, Wayland truely takes over X11, and all distros package it. Now it is just asking for pain IMHO.

+1
That's exactly how I feel. There has been too many attempts to displace X11 - and they all tanked. Wayland does seems to have more backing than its predecessors though.

Bottom line, existing X11 apps will apparently continue to run on Wayland. So we have time…

Regards,
- Graeme -

Reply by email

ik
to Graeme Geldenhuys
Graeme Geldenhuys wrote 15 lines
On 2012-11-09 10:42, Marco van de Voort wrote: > IOW, I wouldn't desperately try to support Wayland native at this point. > > That can be done if the native api turns out to be stable, Wayland truely > takes over X11, and all distros package it. > > Now it is just asking for pain IMHO. +1 That's exactly how I feel. There has been too many attempts to displace X11 - and they all tanked. Wayland does seems to have more backing than its predecessors though. Bottom line, existing X11 apps will apparently continue to run on Wayland. So we have time…

Qt5 afaik, does not support X11 anymore, only wayland, and that's the main path most Linux toolkits takes today.
v1.0 suppose to provide stable API afaik, that's what opendesktop looked at the API headers, and it looks very simple +-, but I'm not going to bind it at this time.

Show quoted text 7 lines
Regards, - Graeme - _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

zeljko
to ik
ik wrote 21 lines
On Fri, Nov 9, 2012 at 1:06 PM, Graeme Geldenhuys wrote: > On 2012-11-09 10:42, Marco van de Voort wrote: >> IOW, I wouldn't desperately try to support Wayland native at this point. >> >> That can be done if the native api turns out to be stable, Wayland >> truely takes over X11, and all distros package it. >> >> Now it is just asking for pain IMHO. > > +1 > That's exactly how I feel. There has been too many attempts to displace > X11 - and they all tanked. Wayland does seems to have more backing than > its predecessors though. > > Bottom line, existing X11 apps will apparently continue to run on > Wayland. So we have time… Qt5 afaik, does not support X11 anymore, only wayland, and that's the main path most Linux toolkits takes today.

afaik, Qt5 DOES support X11.

zeljko

Reply by email

Henry Vermaak
to Graeme Geldenhuys: +1 That's exactly how I feel. There has been too many attempts to displace X11 - and they…
Graeme Geldenhuys wrote 12 lines
On 2012-11-09 10:42, Marco van de Voort wrote: > IOW, I wouldn't desperately try to support Wayland native at this point. > > That can be done if the native api turns out to be stable, Wayland truely > takes over X11, and all distros package it. > > Now it is just asking for pain IMHO. +1 That's exactly how I feel. There has been too many attempts to displace X11 - and they all tanked. Wayland does seems to have more backing than its predecessors though.

Most of Wayland's developers are also X developers, so it looks quite promising. Qt 5 support for Wayland is pretty complete, afaik, so widgetsets are taking it seriously.

Henry

Reply by email

Marco van de Voort
to Graeme Geldenhuys: That is how I understood it too. A while back I thought of starting the API bindings for…

In our previous episode, Graeme Geldenhuys said:

Show quoted text 10 lines
> I'm not sure why, because as far as I know, it replaces the X11 > protocol, not gdk, Qt etc... That is how I understood it too. A while back I thought of starting the API bindings for fpGUI's Wayland backend. But I was told that the Wayland API is still in flux. Unlike Qt or GTK, I don't have so much resources to spend on a moving target. So without having to rework bindings that are constantly being broken, I decided to hold off for a while and see when the API stabilizes.

I think for you with your pure X11 it is less of a problem.

If there are problems, I'd expect them from Wayland based QT/GTK users that need to do a few calls to X11 for some special purposes.

Reply by email

Graeme Geldenhuys
to ik: On Fri, Nov 9, 2012 at 1:06 PM, Graeme Geldenhuys Qt5 afaik, does not support X11…
ik wrote
Qt5 afaik, does not support X11 anymore, only wayland, and that's the main path most Linux toolkits takes today.

As far as I know, they are simply moving more to XCB (the replacement libary for XLib). Saying that, all (big five at least) Linux distros already have XCB libraries shipped as standard. So Qt5 should continue to run as normal.

v1.0 suppose to provide stable API afaik, that's what opendesktop to know, thanks.

Regards,
- Graeme -

Reply by email