server: fix selection cancellation
oopsie
This commit is contained in:
parent
cf1fae1eae
commit
91d463851e
1 changed files with 5 additions and 1 deletions
|
|
@ -1095,6 +1095,11 @@ impl<C: XConnection> ServerState<C> {
|
|||
}
|
||||
}
|
||||
|
||||
if self.world.selection_cancelled {
|
||||
clipboard.source = None;
|
||||
self.world.selection_cancelled = false;
|
||||
}
|
||||
|
||||
if clipboard.source.is_none() {
|
||||
if let Some(offer) = self.world.selection_offer.take() {
|
||||
if offer.inner().is_alive() {
|
||||
|
|
@ -1108,7 +1113,6 @@ impl<C: XConnection> ServerState<C> {
|
|||
clipboard.source = None;
|
||||
}
|
||||
}
|
||||
self.world.selection_cancelled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue