x11: Pass Atom directly
We convert an atom to string just to convert it to an atom. We can avoid the roundtrip. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2945>
This commit is contained in:

committed by
Marge Bot

parent
20e2adc4fc
commit
2e82702084
@ -524,7 +524,7 @@ meta_x11_selection_input_stream_xevent (MetaX11SelectionInputStream *stream,
|
||||
|
||||
void
|
||||
meta_x11_selection_input_stream_new_async (MetaX11Display *x11_display,
|
||||
const char *selection,
|
||||
Atom xselection,
|
||||
const char *target,
|
||||
guint32 timestamp,
|
||||
int io_priority,
|
||||
@ -548,7 +548,7 @@ meta_x11_selection_input_stream_new_async (MetaX11Display *x11_display,
|
||||
|
||||
x11_display->selection.input_streams =
|
||||
g_list_prepend (x11_display->selection.input_streams, stream);
|
||||
priv->xselection = XInternAtom (x11_display->xdisplay, selection, False);
|
||||
priv->xselection = xselection;
|
||||
priv->xtarget = XInternAtom (x11_display->xdisplay, target, False);
|
||||
priv->xproperty = XInternAtom (x11_display->xdisplay, "META_SELECTION", False);
|
||||
priv->window = XCreateWindow (x11_display->xdisplay,
|
||||
|
Reference in New Issue
Block a user