Copy / Cut with right mouse click don't work consistently in X
System information
Arch GNOME 44.2
Bug seems to only happen in X11. could not reproduce in Wayland.
What is the version of GNOME Text Editor? 44.0-36-gc31dcd32
If the bug caused data loss, where was the file located? Not relevant
Text Editor (44.0-36-gc31dcd3) Development
Flatpak: yes
GLib: 2.77.0 (2.77.0)
GTK: 4.11.4 (4.11.4)
GtkSourceView: 5.9.0 (5.9.0)
Libadwaita: 1.4.0 (1.4.0)
Enchant2: 2.2.15
gtk-theme-name: Adwaita-empty
GTK_THEME: unset
GdkDisplay: GdkX11Display
Documents Directory: /home/xxx/Documents
org.gnome.TextEditor restore-session = true
org.gnome.TextEditor recolor-window = true
org.gnome.TextEditor show-map = false
org.gnome.TextEditor custom-font = 'Monospace 11'
org.gnome.TextEditor tab-width = uint32 8
org.gnome.TextEditor show-line-numbers = false
org.gnome.TextEditor style-scheme = 'Adwaita-dark' [default='Adwaita']
org.gnome.TextEditor wrap-text = true
org.gnome.TextEditor style-variant = 'light' [default='follow']
org.gnome.TextEditor indent-style = 'tab'
org.gnome.TextEditor show-right-margin = false
org.gnome.TextEditor spellcheck = true
org.gnome.TextEditor auto-indent = true
org.gnome.TextEditor use-system-font = true
org.gnome.TextEditor keybindings = 'default'
org.gnome.TextEditor highlight-current-line = false
org.gnome.TextEditor last-save-directory = 'file:///home/xxx' [default='']
org.gnome.TextEditor auto-save-delay = uint32 3
org.gnome.TextEditor discover-settings = true
org.gnome.TextEditor enable-snippets = false
org.gnome.TextEditor line-height = 1.2
org.gnome.TextEditor indent-width = -1
org.gnome.TextEditor show-grid = false
org.gnome.TextEditor draw-spaces = @as []
org.gnome.TextEditor right-margin-position = uint32 80
org.gnome.TextEditor highlight-matching-brackets = true
Have you tested Nightly to see if the issue has been fixed? If not, why? Yes, this issue occurs in the Nightly Devel version and additionally in the regular Flatpak / Arch package
Bug information
Steps to reproduce
Using the mouse, sometimes right click Copy / Cut does not seem to have an effect. This issue does not seem to occur trying to copy / cut with 1) using control keys and C or X keys 2) mouse middle click clipboard
Screencast_from_2023-06-26_22-23-16
I made a video to show this problem. The issue starts from 00:21. Notice how I need three tries to copy the first element. Another occurrence is 00:39. "Copy" and "Cut" seem only to work after several attempts.
Current behaviour
The regular flatpak console outputs the message:
(gnome-text-editor:2): Gtk-WARNING **: 22:56:48.639: Broken accounting of active state for widget 0x55e8d0ced240(GtkPopoverMenu)
(gnome-text-editor:2): Gtk-WARNING **: 23:00:12.615: Trying to snapshot GtkGizmo 0x562369f2a2a0 without a current allocation
Full sudo journalctl -xb
output after starting the program
Jun 26 22:59:24 machine gnome-shell[1059]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x55f2032b6cf0] is on because it needs an allocation.
Jun 26 22:59:24 machine gnome-shell[1059]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x55f2044a7cc0] is on because it needs an allocation.
Jun 26 22:59:41 machine systemd[1]: systemd-hostnamed.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-hostnamed.service has successfully entered the 'dead' state.
Jun 26 22:59:59 machine sudo[7874]: pam_unix(sudo:session): session closed for user root
Jun 26 22:59:59 machine dbus-daemon[434]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.150' (ui>
Jun 26 22:59:59 machine systemd[1]: Starting Hostname Service...
░░ Subject: A start job for unit systemd-hostnamed.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-hostnamed.service has begun execution.
░░
░░ The job identifier is 3174.
Jun 26 22:59:59 machine dbus-daemon[434]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jun 26 22:59:59 machine systemd[1]: Started Hostname Service.
░░ Subject: A start job for unit systemd-hostnamed.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-hostnamed.service has finished successfully.
░░
░░ The job identifier is 3174.
Jun 26 23:00:00 machine systemd[1]: Started Timeline of Snapper Snapshots.
░░ Subject: A start job for unit snapper-timeline.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit snapper-timeline.service has finished successfully.
░░
░░ The job identifier is 3264.
Jun 26 23:00:00 machine dbus-daemon[434]: [system] Activating via systemd: service name='org.opensuse.Snapper' unit='snapperd.service' requested by ':1.153' (uid=0 pid=7954 comm="/usr/lib>
Jun 26 23:00:00 machine systemd[1]: Starting DBus interface for snapper...
░░ Subject: A start job for unit snapperd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit snapperd.service has begun execution.
░░
░░ The job identifier is 3353.
Jun 26 23:00:00 machine systemd[910]: Started app-flatpak-org.gnome.TextEditor-7950.scope.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 546.
Jun 26 23:00:00 machine dbus-daemon[434]: [system] Successfully activated service 'org.opensuse.Snapper'
Jun 26 23:00:00 machine systemd[1]: Started DBus interface for snapper.
░░ Subject: A start job for unit snapperd.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit snapperd.service has finished successfully.
░░
░░ The job identifier is 3353.
Jun 26 23:00:00 machine systemd-helper[7954]: running timeline for 'root'.
Jun 26 23:00:00 machine systemd[1]: snapper-timeline.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit snapper-timeline.service has successfully entered the 'dead' state.
Jun 26 23:00:01 machine gnome-shell[1059]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2000004
Jun 26 23:00:01 machine gnome-shell[1059]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2000004
Jun 26 23:00:29 machine systemd[1]: systemd-hostnamed.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-hostnamed.service has successfully entered the 'dead' state.
Jun 26 23:00:32 machine org.wezfurlong.wezterm.desktop[1877]: 23:00:32.718 INFO wezterm_gui::termwindow > clicking resource:///org/gnome/shell/ui/windowManager.js:139:25
Jun 26 23:00:32 machine org.wezfurlong.wezterm.desktop[8060]: gio: resource:///org/gnome/shell/ui/windowManager.js:139:25: The resource at “/org/gnome/shell/ui/windowManager.js:139:25” do>
Jun 26 23:00:42 machine gnome-shell[1059]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2000064
Jun 26 23:00:43 machine systemd[910]: app-flatpak-org.gnome.TextEditor-7950.scope: Consumed 5.061s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit UNIT completed and consumed the indicated resources.
Jun 26 23:00:43 machine dbus-daemon[434]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.155' (ui>
Jun 26 23:00:43 machine systemd[1]: Starting Hostname Service...
░░ Subject: A start job for unit systemd-hostnamed.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-hostnamed.service has begun execution.
░░
░░ The job identifier is 3443.
Jun 26 23:00:43 machine gnome-shell[1059]: JS ERROR: TypeError: this.actor is null
_syncEnabled@resource:///org/gnome/shell/ui/windowManager.js:139:25
onStopped@resource:///org/gnome/shell/ui/windowManager.js:151:35
_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:151:22
_easeActorProperty/<@resource:///org/gnome/shell/ui/environment.js:317:60
_destroyWindowDone@resource:///org/gnome/shell/ui/windowManager.js:1596:21
onStopped@resource:///org/gnome/shell/ui/windowManager.js:1564:39
_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:151:22
_easeActor/<@resource:///org/gnome/shell/ui/environment.js:240:64
Jun 26 23:00:43 machine dbus-daemon[434]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jun 26 23:00:43 machine systemd[1]: Started Hostname Service.
░░ Subject: A start job for unit systemd-hostnamed.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-hostnamed.service has finished successfully.
░░
░░ The job identifier is 3443.
Jun 26 23:00:45 machine dbus-daemon[434]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.157' (uid=0 pid=>
Jun 26 23:00:45 machine dbus-daemon[434]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Jun 26 23:00:45 machine sudo[8118]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Jun 26 23:00:45 machine sudo[8118]: xxx : TTY=pts/1 ; PWD=/home/xxx ; USER=root ; COMMAND=/usr/bin/journalctl -xb
Jun 26 23:00:45 machine sudo[8118]: pam_unix(sudo:session): session opened for user root(uid=0) by xxx(uid=1000)
Expected behaviour
What did you expect to see instead?
copy and cut should work on the first try