|
|
Subscribe / Log in / New account

You betray your ignorance of wayland

You betray your ignorance of wayland

Posted May 28, 2012 6:33 UTC (Mon) by raven667 (subscriber, #5198)
In reply to: You betray your ignorance of wayland by butlerm
Parent article: Announcing printerd

> Presumably, the use of direct-to-Wayland backends with toolkits like GTK and QT will normally make things worse (if not impossible) for remote operation.

The existing robust X backends aren't just going to evaporate, the toolkits are already multi-platform and Wayland is just an additional backend.

> So are the advantages of Wayland with X layered on top substantial enough that it is a major improvement over the status quo?

Yes, it takes the hardware handling out of X and leaves it with just the protocol to support existing apps. The hardware handling can be much better done outside of the X framework than within it. X can be much simpler and more robust if it isn't trying to handle the underlying hardware.

> Or do the real advantages of Wayland only come when you eliminate the X layer in-between?

There is probably sufficient advantage even if the only native Wayland client was the X server although in practice toolkits are going to have a direct Wayland option and eliminate the middleman for local display (only).

> Couldn't you just have libXCB or whatever have multiple backends, one a stub for remote operation using the X protocol, and the other an in-process rasterizer for use with Wayland, etc?

I may be talking above my knowledge level but my guess is that X apps and toolkits just aren't architected in a way where that makes any sense. The people who are designing and implementing Wayland are also the ones who designed and maintain X so my guess is that they are aware of the different architectural options and are picking the best ones.


to post comments

You betray your ignorance of wayland

Posted May 28, 2012 15:59 UTC (Mon) by butlerm (subscriber, #13312) [Link] (5 responses)

>The existing robust X backends aren't just going to evaporate, the toolkits are already multi-platform and Wayland is just an additional backend.

My question here is basically can the toolkit switch dynamically so that the same application binary be run in both X mode or Wayland mode, depending on the runtime environment?

If so, that would be outstanding, if not that could put a major impediment in the deployment of such applications until some form of remote operation is working. I can't see a server distribution standardizing on applications that can't be accessed remotely.

You betray your ignorance of wayland

Posted May 28, 2012 16:19 UTC (Mon) by raven667 (subscriber, #5198) [Link]

I thought the way this was being implemented in the toolkits was to check for environment variables to know which output to use.

You betray your ignorance of wayland

Posted May 28, 2012 17:40 UTC (Mon) by Jonno (subscriber, #49613) [Link] (3 responses)

I don't know about GTK+, but Qt 4.8 and 5.0 autodetects backend at runtime, which can be overridden by a command line argument to the application (i.e. if you have both Wayland and X11 running).

NB: For Qt 4.8 you need to explicitly configure Qt with -qpa to get the new modular backends, the default is X11 only. In Qt 5.0 the hard-coded X11 port will be gone and replaced with a modular xcb backend.

You betray your ignorance of wayland

Posted May 29, 2012 7:51 UTC (Tue) by butlerm (subscriber, #13312) [Link] (2 responses)

Thanks, that is excellent news. Perhaps a little more work than running everything through a generalized version of the XCB API, but accomplishing the same thing nonetheless, and probably more flexible too.

You betray your ignorance of wayland

Posted May 29, 2012 21:53 UTC (Tue) by nix (subscriber, #2304) [Link] (1 responses)

Yeah. If Gtk does that too, most objections to Wayland basically fall away: nobody's likely to implement Wayland-only programs (just as people don't write against raw Xlib these days), and if the toolkits can switch based on an env var or something, the user can choose with whatever granularity is desired between insane blazing performance and remotability (which means I can turn remotability on and forget about Wayland completely).

You betray your ignorance of wayland

Posted May 30, 2012 5:47 UTC (Wed) by aquasync (guest, #26654) [Link]

I would expect so, using the GDK_BACKEND environment variable (see the gtk broadway demos).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds