Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Switch back to x11 GTK backend under Wayland #1554

Merged
merged 1 commit into from
Apr 7, 2018
Merged

Conversation

giox069
Copy link
Contributor

@giox069 giox069 commented Apr 7, 2018

It seems that GTK Clipboard handling under wayland backend is quite broken:

  1. owner-change signal is emitted when the window take focus or is moved,
    not when clipboard owner changes
  2. The signal owner-change event data GdkEventOwnerChange has the "owner"
    field set to NULL, even when the new owner is local to the application
  3. the clipboard owner of a GtkClipboard object is only set
    when we call gtk_clipboard_set_with_owner(), and is not set
    when another process takes clipboard ownership.
  4. Calling gtk_clipboard_set_with_owner() emits owner-change signal
    two times.

All those problems disappear under XWayland.
Currently testing on Ubuntu 17.10 GTK 3.33.25.

Since there are no know workaround in GTK for Remmina to know:

  1. When an external process has taken clipboard ownership
  2. Know if the current clipboard owner is Remmia or not

we switch back to XWayland.

It seems that GTK Clipboard handling under wayland backend is quite broken:
1) owner-change signal is emitted when the window take focus or is moved,
not when clipboard owner changes
2) The signal owner-change event data GdkEventOwnerChange has the "owner"
field set to NULL, even when the new owner is local to the application
3) the clipboard owner of a GtkClipboard object is only set
when we call gtk_clipboard_set_with_owner(), and is not set
when another process takes clipboard ownership.
4) Calling gtk_clipboard_set_with_owner() emits owner-change signal
two times.

All those problems disappear under XWayland.
Currently testing on Ubuntu 17.10 GTK 3.33.25.

Since there are no know workaround in GTK for Remmina to know:
1) When an external process has taken clipboard ownership
2) Know if the current clipboard owner is Remmia or not

we switch back to XWayland.
@antenore antenore added the review label Apr 7, 2018
@giox069 giox069 merged commit fae9c94 into next Apr 7, 2018
@antenore antenore removed the review label Apr 7, 2018
@giox069 giox069 deleted the wayland_clipboard branch April 7, 2018 15:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants