wayland: Clump the globals code together
This commit is contained in:
parent
b6127eeda4
commit
591718dc02
@ -283,12 +283,6 @@ meta_wayland_init (void)
|
|||||||
MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default ();
|
MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default ();
|
||||||
GSource *wayland_event_source;
|
GSource *wayland_event_source;
|
||||||
|
|
||||||
if (!wl_global_create (compositor->wayland_display,
|
|
||||||
&wl_compositor_interface,
|
|
||||||
META_WL_COMPOSITOR_VERSION,
|
|
||||||
compositor, compositor_bind))
|
|
||||||
g_error ("Failed to register the global wl_compositor");
|
|
||||||
|
|
||||||
wayland_event_source = wayland_event_source_new (compositor->wayland_display);
|
wayland_event_source = wayland_event_source_new (compositor->wayland_display);
|
||||||
|
|
||||||
/* XXX: Here we are setting the wayland event source to have a
|
/* XXX: Here we are setting the wayland event source to have a
|
||||||
@ -300,6 +294,12 @@ meta_wayland_init (void)
|
|||||||
g_source_set_priority (wayland_event_source, GDK_PRIORITY_EVENTS + 1);
|
g_source_set_priority (wayland_event_source, GDK_PRIORITY_EVENTS + 1);
|
||||||
g_source_attach (wayland_event_source, NULL);
|
g_source_attach (wayland_event_source, NULL);
|
||||||
|
|
||||||
|
if (!wl_global_create (compositor->wayland_display,
|
||||||
|
&wl_compositor_interface,
|
||||||
|
META_WL_COMPOSITOR_VERSION,
|
||||||
|
compositor, compositor_bind))
|
||||||
|
g_error ("Failed to register the global wl_compositor");
|
||||||
|
|
||||||
wl_display_init_shm (compositor->wayland_display);
|
wl_display_init_shm (compositor->wayland_display);
|
||||||
|
|
||||||
meta_wayland_outputs_init (compositor);
|
meta_wayland_outputs_init (compositor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user