mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-28 10:52:02 +00:00
[client] spice: handle clipboard request failures
This commit is contained in:
@@ -595,7 +595,8 @@ void waylandCBNotice(LG_ClipboardData type)
|
||||
{
|
||||
wlCb.haveRequest = true;
|
||||
wlCb.type = type;
|
||||
app_clipboardRequest(waylandCBReplyFn, NULL);
|
||||
if (!app_clipboardRequest(waylandCBReplyFn, NULL))
|
||||
DEBUG_ERROR("Failed to request SPICE clipboard data");
|
||||
}
|
||||
|
||||
void waylandCBRelease(void)
|
||||
|
||||
@@ -195,8 +195,9 @@ static void x11CBSelectionRequest(const XSelectionRequestEvent e)
|
||||
if (x11cb.aTypes[i] == e.target && x11cb.type == i)
|
||||
{
|
||||
// request the data
|
||||
app_clipboardRequest(x11CBReplyFn, s);
|
||||
return;
|
||||
if (app_clipboardRequest(x11CBReplyFn, s))
|
||||
return;
|
||||
goto nodata;
|
||||
}
|
||||
|
||||
nodata:
|
||||
|
||||
Reference in New Issue
Block a user