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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
     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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to