mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
xwayland: Move global initialization down
This commit is contained in:
parent
81d033ec73
commit
af272f2685
@ -299,10 +299,6 @@ meta_xwayland_start (MetaXWaylandManager *manager,
|
|||||||
char **env;
|
char **env;
|
||||||
char *fd_string;
|
char *fd_string;
|
||||||
|
|
||||||
wl_global_create (wl_display, &xserver_interface,
|
|
||||||
META_XSERVER_VERSION,
|
|
||||||
manager, bind_xserver);
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
lockfile = create_lockfile (display, &display);
|
lockfile = create_lockfile (display, &display);
|
||||||
@ -341,6 +337,10 @@ meta_xwayland_start (MetaXWaylandManager *manager,
|
|||||||
manager->display_index = display;
|
manager->display_index = display;
|
||||||
manager->lockfile = lockfile;
|
manager->lockfile = lockfile;
|
||||||
|
|
||||||
|
wl_global_create (wl_display, &xserver_interface,
|
||||||
|
META_XSERVER_VERSION,
|
||||||
|
manager, bind_xserver);
|
||||||
|
|
||||||
/* We want xwayland to be a wayland client so we make a socketpair to setup a
|
/* We want xwayland to be a wayland client so we make a socketpair to setup a
|
||||||
* wayland protocol connection. */
|
* wayland protocol connection. */
|
||||||
if (socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sp) < 0)
|
if (socketpair (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sp) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user