[Spice-devel] [PATCH] Revert "gtk: don't request clipboard targets when there is no owner"

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jan 14 09:00:44 UTC 2019


On Mon, Jan 14, 2019 at 12:59 PM Victor Toso <victortoso at redhat.com> wrote:
>
> From: Victor Toso <me at victortoso.com>
>
> Otherwise it breaks client to guest clipboard copy&paste.
>
> This reverts commit 84ea62de2e53b149f65e4d071fb5d70e121f6307.
> Signed-off-by: Victor Toso <victortoso at redhat.com>

ack

> ---
>  src/spice-gtk-session.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c
> index 9d7702c..adc72a2 100644
> --- a/src/spice-gtk-session.c
> +++ b/src/spice-gtk-session.c
> @@ -670,8 +670,7 @@ static void clipboard_owner_change(GtkClipboard        *clipboard,
>
>      /* This situation happens when clipboard is being cleared by us, when agent
>       * sends a release-grab for instance */
> -    GObject *owner = gtk_clipboard_get_owner(clipboard);
> -    if (owner == NULL || owner == G_OBJECT(self)) {
> +    if (gtk_clipboard_get_owner(clipboard) == G_OBJECT(self)) {
>          return;
>      }
>
> --
> 2.20.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau


More information about the Spice-devel mailing list