1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

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

refs: #1385
This commit is contained in:
Funami580 2022-05-16 16:15:36 +02:00 committed by Wez Furlong
parent bf0f502823
commit cbd13c5e2a

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>) {