[Wayland-bugs] [Bug 697673] Apps should connect only once when using Wayland

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 12 09:39:42 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=697673
  gtk+ | wayland | 3.8.x

--- Comment #4 from Kristian Høgsberg <krh at bitplanet.net> 2013-04-12 16:39:36 UTC ---
In case that comment was unclear, there are three suggestions on how to avoid
the double connect:

 1) Try to open all types of displays, keep connections open, decide which one
to use, close all others.  Instead of the current open all, close all, decide
which one to use, open that one again.

 2) If GDK_BACKEND is set, skip the first step of opening all types of display
and just open the one we're asked to open; fail if that doesn't work.

 3) WAYLAND_SOCKET is typically used when a compositor launches a client and
provides one end of a socketpair as the connection fd to the client.  In that
case, there's no reason to try to connect, since we know it will always
succeed.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list