summaryrefslogtreecommitdiff
path: root/src/x11/meta-x11-selection-input-stream.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2023-02-10 19:32:27 +0100
committerMarge Bot <marge-bot@gnome.org>2023-02-10 20:43:11 +0000
commite66f4396ee0b8c84c9d2d186d65608f2f4f43a58 (patch)
treeeffa5e4f961c1623ab492da9a5a60add833a674f /src/x11/meta-x11-selection-input-stream.c
parent014cde646117fa4f76932880e715ba60853e9258 (diff)
downloadmutter-e66f4396ee0b8c84c9d2d186d65608f2f4f43a58.tar.gz
x11: Avoid GDK API in X11 selections
Use MetaX11Display's Display, and XInternAtom/XGetAtomName to convert between Atoms and strings. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2836>
Diffstat (limited to 'src/x11/meta-x11-selection-input-stream.c')
-rw-r--r--src/x11/meta-x11-selection-input-stream.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/x11/meta-x11-selection-input-stream.c b/src/x11/meta-x11-selection-input-stream.c
index 5d5aee5d5..491adbedd 100644
--- a/src/x11/meta-x11-selection-input-stream.c
+++ b/src/x11/meta-x11-selection-input-stream.c
@@ -23,8 +23,6 @@
#include "meta-x11-selection-input-stream-private.h"
-#include <gdk/gdkx.h>
-
#include "meta/meta-x11-errors.h"
#include "x11/meta-x11-display-private.h"
@@ -489,7 +487,7 @@ meta_x11_selection_input_stream_xevent (MetaX11SelectionInputStream *stream,
bytes = get_selection_property (priv->x11_display, xwindow,
xevent->xselection.property,
&priv->xtype, &priv->format);
- priv->type = gdk_x11_get_xatom_name (priv->xtype);
+ priv->type = XGetAtomName (xdisplay, priv->xtype);
g_task_return_pointer (task, g_object_ref (stream), g_object_unref);