2010-12-18 20:38:49 +00:00
|
|
|
/*
|
|
|
|
* gdkdisplay-wayland.h
|
|
|
|
*
|
|
|
|
* Copyright 2001 Sun Microsystems Inc.
|
|
|
|
*
|
|
|
|
* Erwann Chenede <erwann.chenede@sun.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2010-12-18 20:38:49 +00:00
|
|
|
*/
|
|
|
|
|
2012-04-16 15:55:43 +00:00
|
|
|
#ifndef __GDK_WAYLAND_DISPLAY__
|
|
|
|
#define __GDK_WAYLAND_DISPLAY__
|
2010-12-18 20:38:49 +00:00
|
|
|
|
2012-04-04 16:20:13 +00:00
|
|
|
#include <config.h>
|
2010-12-18 20:38:49 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <wayland-client.h>
|
2012-07-11 13:18:28 +00:00
|
|
|
#include <wayland-cursor.h>
|
2012-04-04 16:20:13 +00:00
|
|
|
|
2010-12-18 20:38:49 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <gdk/gdkkeys.h>
|
|
|
|
#include <gdk/gdkwindow.h>
|
|
|
|
#include <gdk/gdkinternals.h>
|
|
|
|
#include <gdk/gdk.h> /* For gdk_get_program_class() */
|
|
|
|
|
|
|
|
#include "gdkdisplayprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2012-04-16 15:55:43 +00:00
|
|
|
struct _GdkWaylandDisplay
|
2010-12-18 20:38:49 +00:00
|
|
|
{
|
|
|
|
GdkDisplay parent_instance;
|
2011-02-11 14:56:58 +00:00
|
|
|
GdkScreen *screen;
|
2010-12-18 20:38:49 +00:00
|
|
|
|
|
|
|
/* input GdkDevice list */
|
|
|
|
GList *input_devices;
|
|
|
|
|
|
|
|
/* Startup notification */
|
|
|
|
gchar *startup_notification_id;
|
|
|
|
|
2012-07-11 16:06:32 +00:00
|
|
|
/* Time of most recent user interaction and most recent serial */
|
2010-12-18 20:38:49 +00:00
|
|
|
gulong user_time;
|
2012-07-11 16:06:32 +00:00
|
|
|
guint32 serial;
|
2010-12-18 20:38:49 +00:00
|
|
|
|
|
|
|
/* Wayland fields below */
|
|
|
|
struct wl_display *wl_display;
|
2012-10-17 02:38:41 +00:00
|
|
|
struct wl_registry *wl_registry;
|
2010-12-18 20:38:49 +00:00
|
|
|
struct wl_compositor *compositor;
|
2011-02-09 19:48:29 +00:00
|
|
|
struct wl_shm *shm;
|
2010-12-18 20:38:49 +00:00
|
|
|
struct wl_shell *shell;
|
|
|
|
struct wl_input_device *input_device;
|
2011-12-12 13:56:25 +00:00
|
|
|
struct wl_data_device_manager *data_device_manager;
|
2012-07-11 13:18:28 +00:00
|
|
|
|
|
|
|
struct wl_cursor_theme *cursor_theme;
|
2013-03-21 02:34:03 +00:00
|
|
|
GSList *cursor_cache;
|
2012-07-11 13:18:28 +00:00
|
|
|
|
2010-12-18 20:38:49 +00:00
|
|
|
GSource *event_source;
|
2012-04-04 16:20:13 +00:00
|
|
|
|
2013-03-26 18:42:14 +00:00
|
|
|
int init_ref_count;
|
|
|
|
|
2012-07-16 11:33:35 +00:00
|
|
|
struct xkb_context *xkb_context;
|
2010-12-18 20:38:49 +00:00
|
|
|
};
|
|
|
|
|
2012-04-16 15:55:43 +00:00
|
|
|
struct _GdkWaylandDisplayClass
|
2010-12-18 20:38:49 +00:00
|
|
|
{
|
|
|
|
GdkDisplayClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2012-04-16 15:55:43 +00:00
|
|
|
#endif /* __GDK_WAYLAND_DISPLAY__ */
|