mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-04 19:10:20 +01:00
Release pointer and keyboard with the seat
This patch fixes seat releasing during a RDP disconnection. It does not fully fix https://bugs.freedesktop.org/show_bug.cgi?id=66830, but makes things better.
This commit is contained in:
parent
312ea4ca42
commit
fb8546e45f
1 changed files with 4 additions and 1 deletions
|
|
@ -596,8 +596,11 @@ rdp_peer_context_free(freerdp_peer* client, RdpPeerContext* context)
|
|||
wl_event_source_remove(context->events[i]);
|
||||
}
|
||||
|
||||
if(context->item.flags & RDP_PEER_ACTIVATED)
|
||||
if(context->item.flags & RDP_PEER_ACTIVATED) {
|
||||
weston_seat_release_keyboard(&context->item.seat);
|
||||
weston_seat_release_pointer(&context->item.seat);
|
||||
weston_seat_release(&context->item.seat);
|
||||
}
|
||||
Stream_Free(context->encode_stream, TRUE);
|
||||
nsc_context_free(context->nsc_context);
|
||||
rfx_context_free(context->rfx_context);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue