GNOME Bugzilla – Bug 695561
terminal loss of focus involving shortcuts and gitk/wish
Last modified: 2021-07-05 14:04:42 UTC
* Steps to reproduce Preparation: - Configure xterm as a keyboard shortcut: <Icon in top-left corner> -> System Settings -> Keyboard -> Shortcuts -> Custom Shortcuts -> <+> -> Name: terminal, Command: xterm -> Apply. Click on "Disabled" next to the newly added xterm command. Press Ctrl+Alt+X. - install xterm and gitk. - create an arbitrary git repo Always reproducible: 1. Start xterm using Ctrl+Alt+X 2. Cd to arbitrary git repo 3. gitk 4. Exit gitk 5. Try to type anything * Expected result Typing in step 5 produces output in the xterm. * Actual result Typing produces no output. * Notes - After clicking on a different window and then back on the xterm, typing works again. - Attached is output of xev, which shows that xterm receives focus as expected. - The same issue applies to different terminals such as gnome-terminal or rxvt. - The issue disappears when xterm is started from Activities menu instead of using the keyboard shortcut. - This issue does not happen with just wish instead of gitk (gitk uses tk wish), except in fallback mode (gsettings set org.gnome.desktop.session session-name 'gnome-fallback'), where the same thing happens with just wish. In fallback mode the issue is also present when starting xterm from the Applications menu. - This issue is reproducible with a clean configuration (rm -f ~/.config/dconf/user)
Created attachment 238519 [details] xev output Output of "xev -event_mask focus -event visibility -event structure -event substructure -event expose -event owner_grab_button -id 0x2e00022" while starting and exiting gitk from xterm window 0x2e00022.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.