wayland: clipboard: fix pasting if active surface id was not set

refs: #1385
This commit is contained in:
Funami580 authored and Wez Furlong committed 2022-05-16 14:18:28 -07:00
1 parent bf0f502823
commit cbd13c5e2a
1 file changed
+3
+3
View File
@@ -325,6 +325,9 @@ impl PointerDispatcher {
inner
.surface_to_pending
.insert(surface.as_ref().id(), Arc::clone(pending));
if inner.active_surface_id == 0 {
inner.active_surface_id = surface.as_ref().id();
}
}
pub fn set_cursor(&self, name: &str, serial: Option<u32>) {