aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-04-08 09:42:11 +0200
committerSimon Ser <contact@emersion.fr>2021-04-08 09:50:18 +0200
commit78befa59f96bb0a13e9ffeb4df1272738c6b5012 (patch)
treea854299a7e3d76bd22d719266bc301503a90052e /include/wlr
parenta109a80dca502bd36d61f1d1b3ad1c708ea5ad09 (diff)
gtk-primary-selection: drop support
The standard primary-selection protocol is now widely supported.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_gtk_primary_selection.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/include/wlr/types/wlr_gtk_primary_selection.h b/include/wlr/types/wlr_gtk_primary_selection.h
deleted file mode 100644
index 0d97eba0..00000000
--- a/include/wlr/types/wlr_gtk_primary_selection.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * This protocol is obsolete and will be removed in a future version. The
- * recommended replacement is wp-primary-selection.
- */
-
-/*
- * This an unstable interface of wlroots. No guarantees are made regarding the
- * future consistency of this API.
- */
-#ifndef WLR_USE_UNSTABLE
-#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
-#endif
-
-#ifndef WLR_TYPES_WLR_GTK_PRIMARY_SELECTION_H
-#define WLR_TYPES_WLR_GTK_PRIMARY_SELECTION_H
-
-#include <wayland-server-core.h>
-#include <wlr/types/wlr_seat.h>
-
-/**
- * A primary selection manager which implements the GTK protocol.
- */
-struct wlr_gtk_primary_selection_device_manager {
- struct wl_global *global;
- struct wl_list devices; // wlr_gtk_primary_selection_device::link
-
- struct wl_listener display_destroy;
-
- struct {
- struct wl_signal destroy;
- } events;
-
- void *data;
-};
-
-/**
- * A device is a per-seat object used to set and get the current selection.
- */
-struct wlr_gtk_primary_selection_device {
- struct wlr_gtk_primary_selection_device_manager *manager;
- struct wlr_seat *seat;
- struct wl_list link; // wlr_gtk_primary_selection_device_manager::devices
- struct wl_list resources; // wl_resource_get_link
-
- struct wl_list offers; // wl_resource_get_link
-
- struct wl_listener seat_destroy;
- struct wl_listener seat_focus_change;
- struct wl_listener seat_set_primary_selection;
-
- void *data;
-};
-
-struct wlr_gtk_primary_selection_device_manager *
- wlr_gtk_primary_selection_device_manager_create(struct wl_display *display);
-
-#endif