[PATCH] Release pointer and keyboard with the seat

Kristian Høgsberg hoegsberg at gmail.com
Sun Dec 22 13:50:12 PST 2013


On Sat, Dec 21, 2013 at 11:19:11PM +0100, Hardening wrote:
> 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.

Thanks, applied.  What's left to fix 66830?

Kristian

> ---
>  src/compositor-rdp.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
> index 58342b9..446bf87 100644
> --- a/src/compositor-rdp.c
> +++ b/src/compositor-rdp.c
> @@ -597,8 +597,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);
> -- 
> 1.8.1.2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list