4 * Copyright 2001 Sun Microsystems Inc.
6 * Erwann Chenede <erwann.chenede@sun.com>
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.
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.
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/>.
22 #ifndef __GDK_WAYLAND_DISPLAY__
23 #define __GDK_WAYLAND_DISPLAY__
27 #include <wayland-client.h>
28 #include <wayland-cursor.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() */
36 #include "gdkdisplayprivate.h"
40 struct _GdkWaylandDisplay
42 GdkDisplay parent_instance;
45 /* Keyboard related information */
48 /* input GdkDevice list */
51 /* Startup notification */
52 gchar *startup_notification_id;
54 /* Time of most recent user interaction and most recent serial */
58 /* Wayland fields below */
59 struct wl_display *wl_display;
60 struct wl_registry *wl_registry;
61 struct wl_compositor *compositor;
63 struct wl_shell *shell;
64 struct wl_output *output;
65 struct wl_input_device *input_device;
66 struct wl_data_device_manager *data_device_manager;
68 struct wl_cursor_theme *cursor_theme;
70 GSource *event_source;
72 struct xkb_context *xkb_context;
75 struct _GdkWaylandDisplayClass
77 GdkDisplayClass parent_class;
82 #endif /* __GDK_WAYLAND_DISPLAY__ */