[Wayland-bugs] [Bug 790031] New: GtkClipboardClearFunc is not being called
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue Nov 7 17:58:19 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=790031
Bug ID: 790031
Summary: GtkClipboardClearFunc is not being called
Classification: Platform
Product: gtk+
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: janku.jakub.jj at gmail.com
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 363167
--> https://bugzilla.gnome.org/attachment.cgi?id=363167&action=edit
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171107/d6b2e21b/attachment.html>
More information about the wayland-bugs
mailing list