2012-01-07 17:21:32 -05:00
|
|
|
/*
|
|
|
|
* Wayland Support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012,2013 Intel Corporation
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
|
|
|
#include <clutter/wayland/clutter-wayland-compositor.h>
|
|
|
|
#include <clutter/wayland/clutter-wayland-surface.h>
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/wait.h>
|
2013-08-09 11:56:24 -04:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <unistd.h>
|
2012-01-07 17:21:32 -05:00
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
2014-08-05 08:11:59 -04:00
|
|
|
#include <meta/meta-backend.h>
|
2014-03-31 23:04:44 -04:00
|
|
|
|
2012-01-07 17:21:32 -05:00
|
|
|
#include "meta-wayland-private.h"
|
|
|
|
#include "meta-xwayland-private.h"
|
|
|
|
#include "meta-window-actor-private.h"
|
2013-05-03 13:51:22 -04:00
|
|
|
#include "meta-wayland-seat.h"
|
|
|
|
#include "meta-wayland-keyboard.h"
|
2013-06-15 20:49:03 -04:00
|
|
|
#include "meta-wayland-pointer.h"
|
2014-04-22 18:03:40 -04:00
|
|
|
#include "meta-wayland-outputs.h"
|
2013-05-03 13:51:22 -04:00
|
|
|
#include "meta-wayland-data-device.h"
|
2013-08-13 06:57:41 -04:00
|
|
|
#include "meta-cursor-tracker-private.h"
|
2012-01-07 17:21:32 -05:00
|
|
|
#include "display-private.h"
|
|
|
|
#include "window-private.h"
|
|
|
|
#include <meta/types.h>
|
|
|
|
#include <meta/main.h>
|
|
|
|
#include "frame.h"
|
|
|
|
|
|
|
|
static MetaWaylandCompositor _meta_wayland_compositor;
|
|
|
|
|
|
|
|
MetaWaylandCompositor *
|
|
|
|
meta_wayland_compositor_get_default (void)
|
|
|
|
{
|
|
|
|
return &_meta_wayland_compositor;
|
|
|
|
}
|
|
|
|
|
|
|
|
static guint32
|
|
|
|
get_time (void)
|
|
|
|
{
|
|
|
|
struct timeval tv;
|
|
|
|
gettimeofday (&tv, NULL);
|
|
|
|
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
wayland_event_source_prepare (GSource *base, int *timeout)
|
|
|
|
{
|
|
|
|
WaylandEventSource *source = (WaylandEventSource *)base;
|
|
|
|
|
|
|
|
*timeout = -1;
|
|
|
|
|
|
|
|
wl_display_flush_clients (source->display);
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
wayland_event_source_check (GSource *base)
|
|
|
|
{
|
|
|
|
WaylandEventSource *source = (WaylandEventSource *)base;
|
|
|
|
return source->pfd.revents;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
wayland_event_source_dispatch (GSource *base,
|
|
|
|
GSourceFunc callback,
|
|
|
|
void *data)
|
|
|
|
{
|
|
|
|
WaylandEventSource *source = (WaylandEventSource *)base;
|
|
|
|
struct wl_event_loop *loop = wl_display_get_event_loop (source->display);
|
|
|
|
|
|
|
|
wl_event_loop_dispatch (loop, 0);
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static GSourceFuncs wayland_event_source_funcs =
|
|
|
|
{
|
|
|
|
wayland_event_source_prepare,
|
|
|
|
wayland_event_source_check,
|
|
|
|
wayland_event_source_dispatch,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
static GSource *
|
|
|
|
wayland_event_source_new (struct wl_display *display)
|
|
|
|
{
|
|
|
|
WaylandEventSource *source;
|
|
|
|
struct wl_event_loop *loop = wl_display_get_event_loop (display);
|
|
|
|
|
|
|
|
source = (WaylandEventSource *) g_source_new (&wayland_event_source_funcs,
|
|
|
|
sizeof (WaylandEventSource));
|
|
|
|
source->display = display;
|
|
|
|
source->pfd.fd = wl_event_loop_get_fd (loop);
|
|
|
|
source->pfd.events = G_IO_IN | G_IO_ERR;
|
|
|
|
g_source_add_poll (&source->source, &source->pfd);
|
|
|
|
|
|
|
|
return &source->source;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_buffer_destroy_handler (struct wl_listener *listener,
|
|
|
|
void *data)
|
|
|
|
{
|
|
|
|
MetaWaylandBuffer *buffer =
|
|
|
|
wl_container_of (listener, buffer, destroy_listener);
|
|
|
|
|
|
|
|
wl_signal_emit (&buffer->destroy_signal, buffer);
|
|
|
|
g_slice_free (MetaWaylandBuffer, buffer);
|
|
|
|
}
|
|
|
|
|
2014-02-01 17:45:51 -05:00
|
|
|
void
|
|
|
|
meta_wayland_buffer_ref (MetaWaylandBuffer *buffer)
|
|
|
|
{
|
|
|
|
buffer->ref_count++;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_buffer_unref (MetaWaylandBuffer *buffer)
|
|
|
|
{
|
|
|
|
buffer->ref_count--;
|
|
|
|
if (buffer->ref_count == 0)
|
|
|
|
{
|
|
|
|
g_clear_pointer (&buffer->texture, cogl_object_unref);
|
|
|
|
wl_resource_queue_event (buffer->resource, WL_BUFFER_RELEASE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-30 12:26:18 -04:00
|
|
|
MetaWaylandBuffer *
|
2012-01-07 17:21:32 -05:00
|
|
|
meta_wayland_buffer_from_resource (struct wl_resource *resource)
|
|
|
|
{
|
|
|
|
MetaWaylandBuffer *buffer;
|
|
|
|
struct wl_listener *listener;
|
|
|
|
|
|
|
|
listener =
|
|
|
|
wl_resource_get_destroy_listener (resource,
|
|
|
|
meta_wayland_buffer_destroy_handler);
|
|
|
|
|
|
|
|
if (listener)
|
|
|
|
{
|
|
|
|
buffer = wl_container_of (listener, buffer, destroy_listener);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
buffer = g_slice_new0 (MetaWaylandBuffer);
|
|
|
|
|
|
|
|
buffer->resource = resource;
|
|
|
|
wl_signal_init (&buffer->destroy_signal);
|
|
|
|
buffer->destroy_listener.notify = meta_wayland_buffer_destroy_handler;
|
|
|
|
wl_resource_add_destroy_listener (resource, &buffer->destroy_listener);
|
|
|
|
}
|
|
|
|
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
2013-05-03 13:51:22 -04:00
|
|
|
void
|
|
|
|
meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
|
|
|
|
MetaWindow *window)
|
|
|
|
{
|
|
|
|
MetaWaylandSurface *surface = window ? window->surface : NULL;
|
|
|
|
|
2014-07-10 10:13:54 -04:00
|
|
|
meta_wayland_seat_set_input_focus (compositor->seat, surface);
|
2013-05-03 13:51:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_compositor_repick (MetaWaylandCompositor *compositor)
|
|
|
|
{
|
2014-04-17 18:46:14 -04:00
|
|
|
meta_wayland_seat_repick (compositor->seat);
|
2013-05-03 13:51:22 -04:00
|
|
|
}
|
|
|
|
|
2012-01-07 17:21:32 -05:00
|
|
|
static void
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_compositor_create_surface (struct wl_client *client,
|
|
|
|
struct wl_resource *resource,
|
|
|
|
guint32 id)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
2014-04-22 18:22:13 -04:00
|
|
|
MetaWaylandCompositor *compositor = wl_resource_get_user_data (resource);
|
2014-04-22 18:18:57 -04:00
|
|
|
|
2014-04-22 18:22:13 -04:00
|
|
|
meta_wayland_surface_create (compositor, client, resource, id);
|
2012-01-07 17:21:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_region_destroy (struct wl_client *client,
|
|
|
|
struct wl_resource *resource)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
|
|
|
wl_resource_destroy (resource);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_region_add (struct wl_client *client,
|
|
|
|
struct wl_resource *resource,
|
|
|
|
gint32 x,
|
|
|
|
gint32 y,
|
|
|
|
gint32 width,
|
|
|
|
gint32 height)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
|
|
|
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
|
|
|
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
|
|
|
|
|
|
|
cairo_region_union_rectangle (region->region, &rectangle);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_region_subtract (struct wl_client *client,
|
|
|
|
struct wl_resource *resource,
|
|
|
|
gint32 x,
|
|
|
|
gint32 y,
|
|
|
|
gint32 width,
|
|
|
|
gint32 height)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
|
|
|
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
|
|
|
cairo_rectangle_int_t rectangle = { x, y, width, height };
|
|
|
|
|
|
|
|
cairo_region_subtract_rectangle (region->region, &rectangle);
|
|
|
|
}
|
|
|
|
|
2014-08-04 10:28:44 -04:00
|
|
|
static const struct wl_region_interface meta_wayland_region_interface = {
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_region_destroy,
|
|
|
|
wl_region_add,
|
|
|
|
wl_region_subtract
|
2012-01-07 17:21:32 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_region_resource_destroy_cb (struct wl_resource *resource)
|
|
|
|
{
|
|
|
|
MetaWaylandRegion *region = wl_resource_get_user_data (resource);
|
|
|
|
|
|
|
|
cairo_region_destroy (region->region);
|
|
|
|
g_slice_free (MetaWaylandRegion, region);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_compositor_create_region (struct wl_client *client,
|
|
|
|
struct wl_resource *compositor_resource,
|
|
|
|
uint32_t id)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
|
|
|
MetaWaylandRegion *region = g_slice_new0 (MetaWaylandRegion);
|
|
|
|
|
2014-08-04 10:22:23 -04:00
|
|
|
region->resource = wl_resource_create (client, &wl_region_interface, wl_resource_get_version (compositor_resource), id);
|
|
|
|
wl_resource_set_implementation (region->resource, &meta_wayland_region_interface, region, meta_wayland_region_resource_destroy_cb);
|
2012-01-07 17:21:32 -05:00
|
|
|
|
|
|
|
region->region = cairo_region_create ();
|
|
|
|
}
|
|
|
|
|
|
|
|
const static struct wl_compositor_interface meta_wayland_compositor_interface = {
|
2014-08-04 10:26:55 -04:00
|
|
|
wl_compositor_create_surface,
|
|
|
|
wl_compositor_create_region
|
2012-01-07 17:21:32 -05:00
|
|
|
};
|
|
|
|
|
2013-12-03 14:43:53 -05:00
|
|
|
void
|
|
|
|
meta_wayland_compositor_paint_finished (MetaWaylandCompositor *compositor)
|
2012-01-07 17:21:32 -05:00
|
|
|
{
|
|
|
|
while (!wl_list_empty (&compositor->frame_callbacks))
|
|
|
|
{
|
|
|
|
MetaWaylandFrameCallback *callback =
|
|
|
|
wl_container_of (compositor->frame_callbacks.next, callback, link);
|
|
|
|
|
2014-01-31 15:49:27 -05:00
|
|
|
wl_callback_send_done (callback->resource, get_time ());
|
2012-01-07 17:21:32 -05:00
|
|
|
wl_resource_destroy (callback->resource);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
compositor_bind (struct wl_client *client,
|
|
|
|
void *data,
|
|
|
|
guint32 version,
|
|
|
|
guint32 id)
|
|
|
|
{
|
|
|
|
MetaWaylandCompositor *compositor = data;
|
|
|
|
struct wl_resource *resource;
|
|
|
|
|
2014-08-04 10:24:59 -04:00
|
|
|
resource = wl_resource_create (client, &wl_compositor_interface, version, id);
|
2012-01-07 17:21:32 -05:00
|
|
|
wl_resource_set_implementation (resource, &meta_wayland_compositor_interface, compositor, NULL);
|
|
|
|
}
|
|
|
|
|
2014-03-18 13:00:48 -04:00
|
|
|
/**
|
|
|
|
* meta_wayland_compositor_update:
|
|
|
|
* @compositor: the #MetaWaylandCompositor instance
|
|
|
|
* @event: the #ClutterEvent used to update @seat's state
|
|
|
|
*
|
|
|
|
* This is used to update display server state like updating cursor
|
|
|
|
* position and keeping track of buttons and keys pressed. It must be
|
|
|
|
* called for all input events coming from the underlying devices.
|
|
|
|
*/
|
2013-11-13 15:41:29 -05:00
|
|
|
void
|
|
|
|
meta_wayland_compositor_update (MetaWaylandCompositor *compositor,
|
|
|
|
const ClutterEvent *event)
|
2013-08-23 09:07:57 -04:00
|
|
|
{
|
2014-03-18 13:00:48 -04:00
|
|
|
meta_wayland_seat_update (compositor->seat, event);
|
2013-08-23 09:07:57 -04:00
|
|
|
}
|
|
|
|
|
2014-03-18 13:00:48 -04:00
|
|
|
/**
|
|
|
|
* meta_wayland_compositor_handle_event:
|
|
|
|
* @compositor: the #MetaWaylandCompositor instance
|
|
|
|
* @event: the #ClutterEvent to be sent
|
|
|
|
*
|
|
|
|
* This method sends events to the focused wayland client, if any.
|
|
|
|
*
|
|
|
|
* Return value: whether @event was sent to a wayland client.
|
|
|
|
*/
|
2013-10-04 02:29:43 -04:00
|
|
|
gboolean
|
|
|
|
meta_wayland_compositor_handle_event (MetaWaylandCompositor *compositor,
|
|
|
|
const ClutterEvent *event)
|
2013-05-03 13:51:22 -04:00
|
|
|
{
|
2013-10-04 02:33:10 -04:00
|
|
|
return meta_wayland_seat_handle_event (compositor->seat, event);
|
2013-05-03 13:51:22 -04:00
|
|
|
}
|
|
|
|
|
2013-08-20 12:03:26 -04:00
|
|
|
static void
|
|
|
|
set_gnome_env (const char *name,
|
|
|
|
const char *value)
|
|
|
|
{
|
|
|
|
GDBusConnection *session_bus;
|
2014-03-26 12:02:08 -04:00
|
|
|
GError *error = NULL;
|
2013-08-20 12:03:26 -04:00
|
|
|
|
|
|
|
setenv (name, value, TRUE);
|
|
|
|
|
|
|
|
session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
|
|
|
|
g_assert (session_bus);
|
|
|
|
|
|
|
|
g_dbus_connection_call_sync (session_bus,
|
|
|
|
"org.gnome.SessionManager",
|
|
|
|
"/org/gnome/SessionManager",
|
|
|
|
"org.gnome.SessionManager",
|
|
|
|
"Setenv",
|
|
|
|
g_variant_new ("(ss)", name, value),
|
|
|
|
NULL,
|
2014-05-15 14:16:20 -04:00
|
|
|
G_DBUS_CALL_FLAGS_NO_AUTO_START,
|
2013-08-20 12:03:26 -04:00
|
|
|
-1, NULL, &error);
|
|
|
|
if (error)
|
|
|
|
{
|
2014-03-26 12:02:08 -04:00
|
|
|
if (g_strcmp0 (g_dbus_error_get_remote_error (error), "org.gnome.SessionManager.NotInInitialization") != 0)
|
|
|
|
meta_warning ("Failed to set environment variable %s for gnome-session: %s\n", name, error->message);
|
|
|
|
|
|
|
|
g_error_free (error);
|
2013-08-20 12:03:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-19 20:04:49 -05:00
|
|
|
static void
|
|
|
|
meta_wayland_log_func (const char *fmt,
|
|
|
|
va_list arg)
|
|
|
|
{
|
|
|
|
char *str = g_strdup_vprintf (fmt, arg);
|
|
|
|
g_warning ("WL: %s", str);
|
|
|
|
g_free (str);
|
|
|
|
}
|
|
|
|
|
2012-01-07 17:21:32 -05:00
|
|
|
void
|
|
|
|
meta_wayland_init (void)
|
|
|
|
{
|
|
|
|
MetaWaylandCompositor *compositor = &_meta_wayland_compositor;
|
2014-07-10 11:05:59 -04:00
|
|
|
GSource *wayland_event_source;
|
2012-01-07 17:21:32 -05:00
|
|
|
|
|
|
|
memset (compositor, 0, sizeof (MetaWaylandCompositor));
|
|
|
|
|
|
|
|
compositor->wayland_display = wl_display_create ();
|
|
|
|
if (compositor->wayland_display == NULL)
|
|
|
|
g_error ("failed to create wayland display");
|
|
|
|
|
|
|
|
wl_display_init_shm (compositor->wayland_display);
|
2014-08-13 17:49:53 -04:00
|
|
|
wl_log_set_handler_server (meta_wayland_log_func);
|
2012-01-07 17:21:32 -05:00
|
|
|
|
|
|
|
wl_list_init (&compositor->frame_callbacks);
|
|
|
|
|
|
|
|
if (!wl_global_create (compositor->wayland_display,
|
2013-09-10 07:45:27 -04:00
|
|
|
&wl_compositor_interface,
|
|
|
|
META_WL_COMPOSITOR_VERSION,
|
2012-01-07 17:21:32 -05:00
|
|
|
compositor, compositor_bind))
|
|
|
|
g_error ("Failed to register wayland compositor object");
|
|
|
|
|
2014-07-10 11:05:59 -04:00
|
|
|
wayland_event_source = wayland_event_source_new (compositor->wayland_display);
|
2012-01-07 17:21:32 -05:00
|
|
|
|
|
|
|
/* XXX: Here we are setting the wayland event source to have a
|
|
|
|
* slightly lower priority than the X event source, because we are
|
|
|
|
* much more likely to get confused being told about surface changes
|
|
|
|
* relating to X clients when we don't know what's happened to them
|
|
|
|
* according to the X protocol.
|
|
|
|
*
|
|
|
|
* At some point we could perhaps try and get the X protocol proxied
|
|
|
|
* over the wayland protocol so that we don't have to worry about
|
|
|
|
* synchronizing the two command streams. */
|
2014-07-10 11:05:59 -04:00
|
|
|
g_source_set_priority (wayland_event_source, GDK_PRIORITY_EVENTS + 1);
|
|
|
|
g_source_attach (wayland_event_source, NULL);
|
2012-01-07 17:21:32 -05:00
|
|
|
clutter_wayland_set_compositor_display (compositor->wayland_display);
|
|
|
|
|
2014-03-31 23:04:44 -04:00
|
|
|
meta_clutter_init ();
|
2012-01-07 17:21:32 -05:00
|
|
|
|
2014-04-22 18:05:44 -04:00
|
|
|
meta_wayland_outputs_init (compositor);
|
|
|
|
meta_wayland_data_device_manager_init (compositor);
|
|
|
|
meta_wayland_shell_init (compositor);
|
|
|
|
meta_wayland_seat_init (compositor);
|
2012-01-07 17:21:32 -05:00
|
|
|
|
2013-08-20 12:03:26 -04:00
|
|
|
/* FIXME: find the first free name instead */
|
2014-08-05 16:10:17 -04:00
|
|
|
compositor->display_name = wl_display_add_socket_auto (compositor->wayland_display);
|
|
|
|
if (compositor->display_name == NULL)
|
2012-01-07 17:21:32 -05:00
|
|
|
g_error ("Failed to create socket");
|
|
|
|
|
|
|
|
/* XXX: It's important that we only try and start xwayland after we
|
|
|
|
* have initialized EGL because EGL implements the "wl_drm"
|
|
|
|
* interface which xwayland requires to determine what drm device
|
|
|
|
* name it should use.
|
|
|
|
*
|
|
|
|
* By waiting until we've shown the stage above we ensure that the
|
|
|
|
* underlying GL resources for the surface have also been allocated
|
|
|
|
* and so EGL must be initialized by this point.
|
|
|
|
*/
|
|
|
|
|
2014-02-07 19:26:35 -05:00
|
|
|
if (!meta_xwayland_start (&compositor->xwayland_manager, compositor->wayland_display))
|
2012-01-07 17:21:32 -05:00
|
|
|
g_error ("Failed to start X Wayland");
|
|
|
|
|
2014-02-07 19:26:35 -05:00
|
|
|
set_gnome_env ("DISPLAY", compositor->xwayland_manager.display_name);
|
2013-08-20 12:03:26 -04:00
|
|
|
set_gnome_env ("WAYLAND_DISPLAY", compositor->display_name);
|
2012-01-07 17:21:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_finalize (void)
|
|
|
|
{
|
2013-08-19 08:57:16 -04:00
|
|
|
MetaWaylandCompositor *compositor;
|
|
|
|
|
|
|
|
compositor = meta_wayland_compositor_get_default ();
|
|
|
|
|
2014-02-03 19:37:23 -05:00
|
|
|
meta_xwayland_stop (&compositor->xwayland_manager);
|
2014-03-11 17:04:22 -04:00
|
|
|
}
|