mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-02-11 13:01:26 +00:00
qemu-rdw: minor code simplification
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
142148e8db
commit
a4b0394f27
@ -221,9 +221,8 @@ fn watch_clipboard(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn clipboard_from_selection(selection: ClipboardSelection) -> Option<(gdk::Clipboard, usize)> {
|
fn clipboard_from_selection(selection: ClipboardSelection) -> Option<(gdk::Clipboard, usize)> {
|
||||||
let display = match gdk::Display::default() {
|
let Some(display) = gdk::Display::default() else {
|
||||||
Some(display) => display,
|
return None;
|
||||||
None => return None,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
match selection {
|
match selection {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user