mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-06 16:52:33 +00:00
Set clipboard_event before calling send_selection_notify
send_selection_notify used the clipboard_event, so set it before calling send_selection_notify.
This commit is contained in:
parent
1ef6d280d1
commit
b882416070
@ -2405,6 +2405,7 @@ static void root_win_proc(XEvent& event)
|
||||
break;
|
||||
}
|
||||
|
||||
clipboard_event = event;
|
||||
uint32_t type = get_clipboard_type(selection_request->target);
|
||||
if (!type) {
|
||||
LOG_INFO("Unsupported selection type %s", atom_name(selection_request->target));
|
||||
@ -2415,7 +2416,6 @@ static void root_win_proc(XEvent& event)
|
||||
send_selection_notify(selection_request->target);
|
||||
break;
|
||||
}
|
||||
clipboard_event = event;
|
||||
clipboard_listener->on_clipboard_request(type);
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user