Return empty string for load requests with no seat

This commit is contained in:
Lucas Timmins 2019-04-23 18:48:55 +08:00
parent e0eb10cde6
commit d2e552405b

View file

@ -218,8 +218,10 @@ impl WaylandClipboard {
reader.read_to_string(&mut contents).unwrap();
load_send.send(contents).unwrap();
} 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) => {