<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - GtkClipboardClearFunc is not being called"
href="https://bugzilla.gnome.org/show_bug.cgi?id=790031">790031</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GtkClipboardClearFunc is not being called
</td>
</tr>
<tr>
<th>Classification</th>
<td>Platform
</td>
</tr>
<tr>
<th>Product</th>
<td>gtk+
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: Wayland
</td>
</tr>
<tr>
<th>Assignee</th>
<td>gtk-bugs@gtk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>janku.jakub.jj@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>gtk-bugs@gtk.org
</td>
</tr>
<tr>
<th>CC</th>
<td>rob@robster.org.uk, wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>GNOME version</th>
<td>---
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=363167" name="attach_363167" title="Testcase">attachment 363167</a> <a href="attachment.cgi?id=363167&action=edit" title="Testcase">[details]</a></span>
Testcase
GtkClipboardClearFunc supplied with gtk_clipboard_set_with_owner() or
gtk_clipboard_set_with_data() is not being called.
Likely related:
When using gtk_clipboard_set_with_owner(), gtk_clipboard_get_owner() returns
non-NULL value even though the clipboard is owned by another application.
Affects latest GTK+ from master (version 3.93), as well as stable version 3.22.
Concerns both GDK_SELECTION_CLIPBOARD and GDK_SELECTION_PRIMARY.
Testcase included.
Steps to reproduce:
1) click the "Set clipboard" button in the test program
2) copy (Ctrl+C) something from another application
3) return back to the test program
Actual results:
GtkClipboardClearFunc is not called at all.
gtk_clipboard_get_owner() returns the owner we set in step 1), although it
should return NULL, since the clipboard is owned by the app from step 2).
Expected results:
If the clipboard ownership is lost, GtkClipboardClearFunc should be called
subsequently (in this case in step 3)).
If the clipboard ownership has been claimed by another application,
gtk_clipboard_get_owner() should return NULL.
The behavior should correspond to the one on X11.
Build 2017-11-07 on Fedora 26</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>