Return empty string for load requests with no seat
This commit is contained in:
parent
e0eb10cde6
commit
d2e552405b
1 changed files with 3 additions and 1 deletions
|
|
@ -218,8 +218,10 @@ impl WaylandClipboard {
|
||||||
reader.read_to_string(&mut contents).unwrap();
|
reader.read_to_string(&mut contents).unwrap();
|
||||||
load_send.send(contents).unwrap();
|
load_send.send(contents).unwrap();
|
||||||
} else {
|
} else {
|
||||||
load_send.send("".to_string()).unwrap();
|
load_send.send(String::new()).unwrap();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
load_send.send(String::new()).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
WaylandRequest::Store(seat_name, contents) => {
|
WaylandRequest::Store(seat_name, contents) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue