]> Pileus Git - ~andy/gtk/blob - gdk/wayland/gdkdisplay-wayland.h
Reimplement _NET_WM_SYNC_REQUEST inside X11 backend
[~andy/gtk] / gdk / wayland / gdkdisplay-wayland.h
1 /*
2  * gdkdisplay-wayland.h
3  * 
4  * Copyright 2001 Sun Microsystems Inc. 
5  *
6  * Erwann Chenede <erwann.chenede@sun.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef __GDK_WAYLAND_DISPLAY__
23 #define __GDK_WAYLAND_DISPLAY__
24
25 #include <config.h>
26 #include <stdint.h>
27 #include <wayland-client.h>
28 #include <wayland-cursor.h>
29
30 #include <glib.h>
31 #include <gdk/gdkkeys.h>
32 #include <gdk/gdkwindow.h>
33 #include <gdk/gdkinternals.h>
34 #include <gdk/gdk.h>            /* For gdk_get_program_class() */
35
36 #include "gdkdisplayprivate.h"
37
38 G_BEGIN_DECLS
39
40 struct _GdkWaylandDisplay
41 {
42   GdkDisplay parent_instance;
43   GdkScreen *screen;
44
45   /* Keyboard related information */
46   GdkKeymap *keymap;
47
48   /* input GdkDevice list */
49   GList *input_devices;
50
51   /* Startup notification */
52   gchar *startup_notification_id;
53
54   /* Time of most recent user interaction and most recent serial */
55   gulong user_time;
56   guint32 serial;
57
58   /* Wayland fields below */
59   struct wl_display *wl_display;
60   struct wl_registry *wl_registry;
61   struct wl_compositor *compositor;
62   struct wl_shm *shm;
63   struct wl_shell *shell;
64   struct wl_input_device *input_device;
65   struct wl_data_device_manager *data_device_manager;
66
67   struct wl_cursor_theme *cursor_theme;
68
69   GSource *event_source;
70
71   struct xkb_context *xkb_context;
72 };
73
74 struct _GdkWaylandDisplayClass
75 {
76   GdkDisplayClass parent_class;
77 };
78
79 G_END_DECLS
80
81 #endif                          /* __GDK_WAYLAND_DISPLAY__ */