xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 9 years ago

Closed 9 years ago

Last modified 8 months ago

#192 closed defect (fixed)

mouse cursor shown as 'X' in some applications.

Reported by: onlyjob Owned by: Antoine Martin
Priority: minor Milestone: 0.8
Component: core Version: trunk
Keywords: Cc:


Is some applications and in some dialogs mouse cursor looks like 'X' even though server and client configuration are similar i.e. same set of packages etc.

While most of the time cursor looks normal occasionally on dialogs OK/Cancel cursor turns to 'X'.

In "Gnucash" application cursor stays 'X' most of the time except for hovering on links, navigating menu or selecting text.

It will be nice to have this resolved after other issues of greater priority. Thanks.

Change History (8)

comment:1 Changed 9 years ago by onlyjob

"geany" is another application where mouse cursor looks like 'X' in all panels, dialogs and menus.

comment:2 Changed 9 years ago by Antoine Martin

Milestone: 0.70.8
Status: newaccepted

the 'X' is the default X11 cursor, what you are seeing is the cursor the application has asked for, but using the default theme rather than the theme your client normally uses.

You should be able to set xpra to use the same theme (using whatever mechanism your DE uses - .Xresources?)

$ xrdb -global -query | grep Xcursor
Xcursor.size:	18
Xcursor.theme:	Adwaita
Xcursor.theme_core:	true

We should not try forwarding the client's theme name automatically as there are no guarantees that the theme the client is requesting actually exists on the server.

We should send the cursor name from XFixesCursorImage (if the server's XFIXES_MAJOR version is 2 or higher) to the client instead of sending the cursor's pixels. Then the client can request this new cursor by name and should therefore use the default client theme. Would save bandwidth too.

comment:3 Changed 9 years ago by Antoine Martin

The proper ticket for this is #205 (use cursor_name instead of pixels).

Can you try trunk or the beta 0.8 packages available here and let me know if that fixes your problem?

comment:4 Changed 9 years ago by onlyjob

I tried trunk r2030 but there is no difference whatsoever neither in "geany" not in "gnucash". (Cursor still look like 'X' as before).

xrdb -global -query | grep Xcursor

returns nothing.

comment:5 Changed 9 years ago by Antoine Martin

I think you get what you expect to find if you run this command in xpra:

xsetroot -cursor_name  left_ptr

(replace left_ptr with the default cursor used in your client session)

Now, I need to figure out how to get this value from the client and apply it to the server.

comment:6 Changed 9 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

fixed in r2034 (see changeset for details)

Version 0, edited 9 years ago by Antoine Martin (next)

comment:7 Changed 9 years ago by onlyjob

Thank you, it works very well.

comment:8 Changed 8 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/192

Note: See TracTickets for help on using tickets.