mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
3b953041a9
This implementation makes the destination side of selections work similarly to X11's, gdk_selection_convert() triggers data fetching, which is notified through GDK_SELECTION_NOTIFY events on arrival, the buffered data is then available through gdk_selection_property_get(). https://bugzilla.gnome.org/show_bug.cgi?id=697855
89 lines
2.2 KiB
C
89 lines
2.2 KiB
C
/*
|
|
* 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
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GDK_WAYLAND_DISPLAY__
|
|
#define __GDK_WAYLAND_DISPLAY__
|
|
|
|
#include <config.h>
|
|
#include <stdint.h>
|
|
#include <wayland-client.h>
|
|
#include <wayland-cursor.h>
|
|
#include <gdk/wayland/gtk-shell-client-protocol.h>
|
|
#include <gdk/wayland/xdg-shell-client-protocol.h>
|
|
|
|
#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
|
|
|
|
typedef struct _GdkWaylandSelection GdkWaylandSelection;
|
|
|
|
struct _GdkWaylandDisplay
|
|
{
|
|
GdkDisplay parent_instance;
|
|
GdkScreen *screen;
|
|
|
|
/* input GdkDevice list */
|
|
GList *input_devices;
|
|
|
|
/* Startup notification */
|
|
gchar *startup_notification_id;
|
|
|
|
/* Most recent serial */
|
|
guint32 serial;
|
|
|
|
/* Wayland fields below */
|
|
struct wl_display *wl_display;
|
|
struct wl_registry *wl_registry;
|
|
struct wl_compositor *compositor;
|
|
struct wl_shm *shm;
|
|
struct xdg_shell *xdg_shell;
|
|
struct gtk_shell *gtk_shell;
|
|
struct wl_input_device *input_device;
|
|
struct wl_data_device_manager *data_device_manager;
|
|
struct wl_subcompositor *subcompositor;
|
|
|
|
struct wl_cursor_theme *cursor_theme;
|
|
GHashTable *cursor_cache;
|
|
|
|
GSource *event_source;
|
|
|
|
int compositor_version;
|
|
|
|
struct xkb_context *xkb_context;
|
|
|
|
GdkWaylandSelection *selection;
|
|
};
|
|
|
|
struct _GdkWaylandDisplayClass
|
|
{
|
|
GdkDisplayClass parent_class;
|
|
};
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GDK_WAYLAND_DISPLAY__ */
|