2
* Copyright (C) 2014 Red Hat
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
* Jasper St. Pierre <jstpierre@mecheye.net>
23
#ifndef META_WAYLAND_H
24
#define META_WAYLAND_H
26
#include <clutter/clutter.h>
27
#include <meta/types.h>
28
#include "meta-wayland-types.h"
30
void meta_wayland_override_display_name (char *display_name);
32
void meta_wayland_pre_clutter_init (void);
33
void meta_wayland_init (void);
34
void meta_wayland_finalize (void);
36
/* We maintain a singleton MetaWaylandCompositor which can be got at via this
37
* API after meta_wayland_init() has been called. */
38
MetaWaylandCompositor *meta_wayland_compositor_get_default (void);
40
void meta_wayland_compositor_update (MetaWaylandCompositor *compositor,
41
const ClutterEvent *event);
42
gboolean meta_wayland_compositor_handle_event (MetaWaylandCompositor *compositor,
43
const ClutterEvent *event);
44
void meta_wayland_compositor_update_key_state (MetaWaylandCompositor *compositor,
48
void meta_wayland_compositor_repick (MetaWaylandCompositor *compositor);
50
void meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
53
void meta_wayland_compositor_paint_finished (MetaWaylandCompositor *compositor);
55
void meta_wayland_compositor_destroy_frame_callbacks (MetaWaylandCompositor *compositor,
56
MetaWaylandSurface *surface);
58
const char *meta_wayland_get_wayland_display_name (MetaWaylandCompositor *compositor);
59
const char *meta_wayland_get_xwayland_display_name (MetaWaylandCompositor *compositor);
61
void meta_wayland_compositor_restore_shortcuts (MetaWaylandCompositor *compositor,
62
ClutterInputDevice *source);
63
gboolean meta_wayland_compositor_is_shortcuts_inhibited (MetaWaylandCompositor *compositor,
64
ClutterInputDevice *source);
66
void meta_wayland_compositor_flush_clients (MetaWaylandCompositor *compositor);