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 998529 - Mouse pointer appears black on PuTTY terminals opened from windows 7 guests
Summary: Mouse pointer appears black on PuTTY terminals opened from windows 7 guests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: spice-gtk
Version: 6.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Alon Levy
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1002697
TreeView+ depends on / blocked
 
Reported: 2013-08-19 13:30 UTC by Roman Hodain
Modified: 2018-12-04 15:44 UTC (History)
11 users (show)

Fixed In Version: spice-gtk-0.20-11.el6
Doc Type: Bug Fix
Doc Text:
Cause: Mouse over PuTTY session, with Windows guests. Consequence: The mouse pointer appears "black". Fix: Improve cursor contrast. Result: The cursor is visible on PuTTY sessions, with Windows guests.
Clone Of:
Environment:
Last Closed: 2013-11-21 08:00:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 466483 0 None None None Never
Red Hat Product Errata RHBA-2013:1577 0 normal SHIPPED_LIVE spice-gtk bug fix and enhancement update 2013-11-21 00:40:45 UTC

Description Roman Hodain 2013-08-19 13:30:45 UTC
Description of problem:
On PuTTY sessions the mouse pointer appears black when opened from a windows 7 guest connected via spice.

the issue is described more deeply here: 
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/black-pointer.html

and arises also when connecting via rdesktop (see http://osdir.com/ml/network.rdesktop.user/2005-03/msg00012.html) but it does not arise when connecting via MSTSC or via freeRDP.

Workaround:

     The I-beam mouse pointer that PuTTY uses is not rendered the same in rdesktop as it is in the Windows Remote Desktop client. The workaround is to change the "Text Select" pointer on the Windows machine by going to Control Panel->Mouse->Pointers. I changed it to the beam_r.cur image, which is a beefier version of the I-beam bitmap which does render nicely in rdesktop. 


Version-Release number of selected component (if applicable):
   All versions

How reproducible:
   100%

Steps to Reproduce:
1. open putty terminal in in Win7 guest accessed cia spice

Actual results:
   Cursor is black

Expected results:
   Cursor is white

Additional info:

Comment 3 Alon Levy 2013-08-28 09:19:54 UTC
spicec shows the cursor correctly, so it isn't a server/driver problem, but a client problem. That gives me the right part of the code to look at.

Comment 4 Alon Levy 2013-08-28 12:34:09 UTC
So, I found the code in question, spicec does something it itself calls a hack. The situation is like this:

guest sets a mono cursor. A mono cursor consists of two masks: a and mask and a xor mask. The problem is what to do when both xor and and masks are on. The current behavior of spice-gtk is wrong - it ignores the xor:

http://cgit.freedesktop.org/spice/spice-gtk/tree/gtk/channel-cursor.c#n262

But spicec behavior is also wrong, it doesn't actually invert, it simply sets a different color so it acheives some contrast and avoids the putty symptom:

http://cgit.freedesktop.org/spice/spice/tree/client/x11/platform.cpp#n3549
http://cgit.freedesktop.org/spice/spice/tree/client/x11/platform.cpp#n3499

So possible solutions:
* copy the hack. easy, not very good. fixes regression.
* figure out how to do a real invert in the cursor. Marc-Andre, any idea how to do that? can we do that with X?

Alon

Comment 5 Marc-Andre Lureau 2013-08-28 12:45:48 UTC
(In reply to Alon Levy from comment #4)
> So possible solutions:
> * copy the hack. easy, not very good. fixes regression.
> * figure out how to do a real invert in the cursor. Marc-Andre, any idea how
> to do that? can we do that with X?

Apparently it is not supported by Gtk, so I would go with the hack.

Comment 7 Alon Levy 2013-08-28 15:48:53 UTC
Patches pushed upstream.

Comment 8 David Blechter 2013-08-28 19:13:01 UTC
in rhel 6.5 the problem will be solved for the rhel client. 
If you are interested in win client, then the similar bug should opens for ming-virt-viewer in rhevm

Comment 10 Bryan Yount 2013-08-29 18:06:06 UTC
(In reply to David Blechter from comment #8)
> in rhel 6.5 the problem will be solved for the rhel client. 
> If you are interested in win client, then the similar bug should opens for
> ming-virt-viewer in rhevm

Thanks David. I have opened Bug 1002697 to report this against mingw-virt-viewer.

Comment 15 Alon Levy 2013-10-21 13:05:54 UTC
Better fix this time, adding a edge around any invert only cursor to give it contrast on any background, dark or light.

Comment 16 Alon Levy 2013-10-22 12:40:34 UTC
Updating "Fixed in Version", -11 returns to using relro linkage (a security measure) and so fixes a rpmdiff test compared to 10, there is no other change.

Comment 20 errata-xmlrpc 2013-11-21 08:00:36 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2013-1577.html


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