Wayland: mouse ungrab not working
In remote-viewer when pressing shift+12 the mous should be ungrabed, however its not working under wayland if SPICE_MOUSE_MODE_SERVER
is used. The problem seems to be that remote-viewer fist ungrabs the keyboardtry_keyboard_ungrab
and then the mouse try_mouse_ungrab
. Due what i assume is an error in ungrab_pointer
in spice-widget.c
if (d->mouse_mode == SPICE_MOUSE_MODE_SERVER) {
spice_wayland_extensions_disable_relative_pointer(widget);
spice_wayland_extensions_unlock_pointer(widget);
}
never gets called if the keyboard is already ungrabed.
I made a simple fix for that, by just moving it out of the if block: 3b78fbbee8c30e84de38f64776b0508f7919942f.patch