diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-04-06 12:02:02 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-04-08 13:29:59 +0200 |
commit | 288f843568c49b0618894d430b86b935f433bfde (patch) | |
tree | 5f7d5b06716e08c44c5349dfc32d26dfd10e9073 /gtk | |
parent | 2bed1666a2e3b55803298c77fd14c4d219162a4c (diff) |
gtk: Clear hasdata when we do a clipboard_set_with_data
When we call gtk_clipboard_set_with_data to set the client clipboard
to the targets reported as available by the agent, the clipboard no
longer has data in the sense that it has data which is interesting
for spice_display_copy_to_guest, so clear clip_hasdata whenever we
call gtk_clipboard_set_with_data,
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/spice-widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c index 4af7380..95d9006 100644 --- a/gtk/spice-widget.c +++ b/gtk/spice-widget.c @@ -1619,6 +1619,7 @@ static gboolean clipboard_grab(SpiceMainChannel *main, guint selection, return FALSE; } d->clipboard_selfgrab_pending[selection] = TRUE; + d->clip_hasdata[selection] = FALSE; skip_grab_clipboard: d->clipboard_by_guest[selection] = TRUE; @@ -1870,6 +1871,7 @@ void spice_display_paste_from_guest(SpiceDisplay *display) return; } d->clipboard_selfgrab_pending[selection] = TRUE; + d->clip_hasdata[selection] = FALSE; } /** |