mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
spicec-x11: make get_clipboard_type handle the None Atom
This commit is contained in:
parent
b74f21ce66
commit
34bfaa302d
@ -184,6 +184,9 @@ static const char *atom_name(Atom atom)
|
||||
static uint32_t get_clipboard_type(Atom target) {
|
||||
int i;
|
||||
|
||||
if (target == None)
|
||||
return VD_AGENT_CLIPBOARD_NONE;
|
||||
|
||||
for (i = 0; i < utf8_atom_count; i++)
|
||||
if (utf8_atoms[i] == target)
|
||||
return VD_AGENT_CLIPBOARD_UTF8_TEXT;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user