RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1548371 - default release pointer key 'Ctrl+Alt' is not accurate
Summary: default release pointer key 'Ctrl+Alt' is not accurate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-viewer
Version: ---
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Default Assignee for SPICE Bugs
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-23 10:52 UTC by Xiaodai Wang
Modified: 2021-05-18 15:53 UTC (History)
8 users (show)

Fixed In Version: virt-viewer-9.0-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:53:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)

Description Xiaodai Wang 2018-02-23 10:52:27 UTC
Description of problem:
default release pointer key 'Ctrl+Alt' is not accurate

Version-Release number of selected component (if applicable):
virt-viewer-5.0-10.el7.x86_64

How reproducible:
100%
Steps to Reproduce:
1. Prepare a guest which can grasp mouse pointer.
2. Keep release pointer key as default 'ctrl+alt'
3. Open the guest by virt-viewer and click the guest to grasp the mouse pointer.
4. Check the title is 'Press Ctrl+Alt to release pointer xxx'.

Actual results:
The mouse can only be released by left control + left alt, and right control + right alt doesn't work.


Expected results:
It's better to change default 'Ctrl+Alt' to 'Ctrl_L+Alt_L', or some strings look more accurate.

Additional info:

Comment 2 Victor Toso 2018-12-19 15:32:46 UTC
Improving UI/UX. Moving to RHEL 8

Comment 3 Frediano Ziglio 2020-07-09 09:37:53 UTC
Looking at code:

./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_Delete, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+_Del"), "<virt-viewer>/send/secure-attention"},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_BackSpace, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+_Backspace"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F1, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_1"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F2, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_2"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F3, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_3"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F4, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_4"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F5, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_5"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F6, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_6"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F7, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_7"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F8, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_8"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F9, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_9"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F10, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F1_0"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F11, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F11"), NULL},
./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F12, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F12"), NULL},

most of the combinations require only left modifiers (control and alt) but the comment does not state that.

Comment 4 Frediano Ziglio 2020-07-09 10:07:47 UTC
(In reply to Frediano Ziglio from comment #3)
> Looking at code:
> 
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_Delete, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+_Del"),
> "<virt-viewer>/send/secure-attention"},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_BackSpace, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+_Backspace"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F1, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_1"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F2, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_2"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F3, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_3"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F4, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_4"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F5, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_5"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F6, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_6"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F7, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_7"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F8, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_8"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F9, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F_9"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F10, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F1_0"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F11, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F11"), NULL},
> ./src/virt-viewer-window.c:    { { GDK_KEY_Control_L, GDK_KEY_Alt_L,
> GDK_KEY_F12, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F12"), NULL},
> 
> most of the combinations require only left modifiers (control and alt) but
> the comment does not state that.

Ignore, the keys above are sent to the guest.

Maybe replace the "Ctrl+Alt" string with "LCtrl+LAlt" ? or "LeftCtrl+LeftAlt" ?

Comment 5 Frediano Ziglio 2020-07-10 09:59:30 UTC
Posted patch https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/17

Comment 6 Frediano Ziglio 2020-07-15 09:54:43 UTC
Upstream patch accepted

Comment 9 Frediano Ziglio 2020-10-15 13:03:04 UTC
Patch accepted and merged upstream, see https://gitlab.com/virt-viewer/virt-viewer/-/commit/ae25f6ca6b46e95281186492de5bc0a0fe4974a6

Comment 15 zhoujunqin 2020-12-11 11:21:39 UTC
I can reproduce this issue with build:

virt-viewer-9.0-4.el8.x86_64


Then try to verify this bug with new build:

Step:
1. Prepare a guest which can grasp mouse pointer.

2. Keep release pointer key as default 'ctrl+alt'

3. Open the guest by virt-viewer and click the guest to grasp the mouse pointer.
$ virt-viewer  -c qemu:///system rhel8.3

4. Check the title is 'Press Ctrl_L+Alt_L to release pointer xxx'

The mouse can only be released by left control + left alt, and right control + right alt doesn't work.

Summary:
The default key accelerator to release mouse if left control and left alt and the description has changed to "Ctrl_L+Alt_L" to avoid misunderstanding.
I move this bug from ON_QA to VERIFIED, thanks.

Comment 17 errata-xmlrpc 2021-05-18 15:53:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (virt-viewer bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1876


Note You need to log in before you can comment on or make changes to this bug.