diff options
author | Sebastian Keller <skeller@gnome.org> | 2023-04-13 01:25:27 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-04-14 13:27:19 +0000 |
commit | 94bd5c731991a2523e6ee60fffe67030479e5340 (patch) | |
tree | 6dcf46aafd0f980fdd17ab37d687b460eb132fe9 /src/x11/meta-x11-selection-output-stream-private.h | |
parent | 01ae1d32eefedb613032f5b5b980a614831d3391 (diff) | |
download | mutter-94bd5c731991a2523e6ee60fffe67030479e5340.tar.gz |
x11: Use Atoms when constructing a new MetaX11SelectionOutputStream
This was pointlessly being converted between atom and string and back,
which with the switch from gdk_x11_get_xatom_name() to XGetAtomName()
also introduced a leak for every XGetAtomName() call.
Fixes: e66f4396e ("x11: Avoid GDK API in X11 selections")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2957>
Diffstat (limited to 'src/x11/meta-x11-selection-output-stream-private.h')
-rw-r--r-- | src/x11/meta-x11-selection-output-stream-private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x11/meta-x11-selection-output-stream-private.h b/src/x11/meta-x11-selection-output-stream-private.h index 83390da48..41bedd9db 100644 --- a/src/x11/meta-x11-selection-output-stream-private.h +++ b/src/x11/meta-x11-selection-output-stream-private.h @@ -34,10 +34,10 @@ G_DECLARE_FINAL_TYPE (MetaX11SelectionOutputStream, GOutputStream * meta_x11_selection_output_stream_new (MetaX11Display *x11_display, Window window, - const char *selection, - const char *target, - const char *property, - const char *type, + Atom selection, + Atom target, + Atom property, + Atom type, int format, gulong timestamp); |