mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-06 15:40:40 +00:00
client: Avoid crash if platform_win is NULL
This is a temporary fix as this will be fixed for real when the cut and paste patches land.
This commit is contained in:
parent
92d286c6b5
commit
e5474684d5
@ -3024,8 +3024,12 @@ void Platform::set_clipboard_listener(ClipboardListener* listener)
|
||||
return;
|
||||
}
|
||||
clipboard_listener = listener;
|
||||
XConvertSelection(x_display, XA_PRIMARY, utf8_atom, clipboard_prop,
|
||||
platform_win, CurrentTime);
|
||||
/* Seems platform_win can be NULL, we'll just ignore that for now.
|
||||
This will be fixed when the rest of cut and paste lands */
|
||||
if (platform_win) {
|
||||
XConvertSelection(x_display, XA_PRIMARY, utf8_atom, clipboard_prop,
|
||||
platform_win, CurrentTime);
|
||||
}
|
||||
}
|
||||
|
||||
bool Platform::set_clipboard_data(uint32_t type, const uint8_t* data, int32_t size)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user