Steam should not change the global mouse cursor theme #2

Closed
flyser opened this Issue Dec 20, 2012 · 46 comments

Comments

Projects
None yet
@flyser

flyser commented Dec 20, 2012

Several people have issues, because Steam changes the mouse cursor theme, which causes the cursor to be inverted sometimes. See this screenshot: http://i.imgur.com/R6Dwa.png
The problem persists in other applications even after Steam was closed.

System information:

Prozessor:
    Hersteller: GenuineIntel
    Geschwindigkeit: 2667 MHz
    4 logische Prozessoren
    3 technische Prozessoren
    HyperThreading:  Unterstützt
    FCMOV:  Unterstützt
    SSE2:  Unterstützt
    SSE3:  Unterstützt
    SSSE3:  Unterstützt
    SSE4a:  Nicht unterstützt
    SSE41:  Unterstützt
    SSE42:  Unterstützt

Netzwerk-Informationen:
    Netzwerk-Geschwindigkeit: 

Betriebssystem:
    "Gentoo Base System release 2.1" (64 Bit)
    Kernel-Name: Linux
    Kernel-Version: 3.6.8
    X-Server-Vendor: The X.Org Foundation
    X-Server-Release: 11300000

Grafikkarte:
    Treiber: NVIDIA Corporation NVS 3100M/PCIe/SSE2

    Treiber-Version: 3.3.0 NVIDIA 310.19
    Desktop-Farbtiefe: 24 Bit per Pixel
    Monitor-Aktualisierungsrate: 60 Hz
    Anbieterkennung: 0x10de
    Gerätekennung: 0xa6c
    Anzahl der Monitore: 1
    Keine Grafikkartenanzahl entdeckt
    Prim. Anzeigeauflösung: 1920 x 1080
    Desktop-Auflösung: 1920 x 1080
    Prim. Anzeigegröße: 34,4 cm x 19,3 cm (39,4 cm diag.)

    Primärer Bus: PCI Express 16x
    Primärer VRAM: 512 MB
    Unterstützte MSAA-Modi: 2x 4x 8x 16x 

Soundkarte:
    Audiogerät: Conexant CX20585

Speicher:
    RAM: 7837 MB

Weitere Daten:
    UI-Sprache: Deutsch (Deutsch)
    LANG:  de_DE.utf8
    Mikrofon: Not set
    Verfügbarer Festplattenspeicher insgesamt: 235572 MB
    Größter freier Festplattenspeicherblock: 53425 MB

Installierte Software:

Neueste Fehlerberichte:
    Sat Dec 15 23:00:48 2012 GMT: file ''/tmp/dumps/assert_20121216000046_1.dmp'', upload yes: ''CrashID=bp-39f2d035-a0ac-4e5c-8374-188a52121215''
    Sun Dec 16 20:42:39 2012 GMT: file ''/tmp/dumps/crash_20121216214237_1.dmp'', upload yes: ''CrashID=bp-229fa7fd-ca67-47c0-8b30-969272121216''
    Sun Dec 16 20:43:08 2012 GMT: file ''/tmp/dumps/assert_20121216214304_1.dmp'', upload yes: ''CrashID=bp-a2f6208d-279b-4ea5-b7fc-b17fd2121216''
    Sun Dec 16 23:48:34 2012 GMT: file ''/tmp/dumps/crash_20121217004833_1.dmp'', upload yes: ''CrashID=bp-f599ad91-37c2-4f5e-b563-50e682121216''
    Mon Dec 17 21:41:56 2012 GMT: file ''/tmp/dumps/crash_20121217224154_1.dmp'', upload yes: ''CrashID=bp-ab220a30-a38d-482a-a748-14ae32121217''
    Tue Dec 18 21:55:03 2012 GMT: file ''/tmp/dumps/crash_20121218225501_1.dmp'', upload yes: ''CrashID=bp-1242db39-2435-4ab9-b491-d47a02121218''
    Wed Dec 19 21:17:01 2012 GMT: file ''/tmp/dumps/crash_20121219221659_1.dmp'', upload yes: ''CrashID=bp-aa923b65-e092-4b03-8488-8cbe52121219''
    Wed Dec 19 21:17:22 2012 GMT: file ''/tmp/dumps/assert_20121219221720_1.dmp'', upload yes: ''CrashID=bp-f5f78820-6663-4050-9928-e65042121219''
@dotboris

This comment has been minimized.

Show comment
Hide comment
@dotboris

dotboris Dec 20, 2012

You can reset the cursor back to what it was when steam is closed using
xsetroot -cursor_name left_ptr

You can reset the cursor back to what it was when steam is closed using
xsetroot -cursor_name left_ptr

@flyser

This comment has been minimized.

Show comment
Hide comment
@flyser

flyser Dec 20, 2012

That is a workaround and not a bug fix. There is no reason for steam to mess around with the system mouse cursor theme.

flyser commented Dec 20, 2012

That is a workaround and not a bug fix. There is no reason for steam to mess around with the system mouse cursor theme.

@dotboris

This comment has been minimized.

Show comment
Hide comment
@dotboris

dotboris Dec 20, 2012

I am well aware of that. This workaround could still help some people.

I am well aware of that. This workaround could still help some people.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 20, 2012

The workaround doesn't work, because Steam instantaneously changes the mouse pointer back to the inverted one while it is running. So I can't use the machine, while downloading something in the background.

ghost commented Dec 20, 2012

The workaround doesn't work, because Steam instantaneously changes the mouse pointer back to the inverted one while it is running. So I can't use the machine, while downloading something in the background.

@patientone

This comment has been minimized.

Show comment
Hide comment
@patientone

patientone Dec 20, 2012

http://wiki.gentoo.org/wiki/Steam#Mouse_cursor

"If your WM/DE does not set a mouse pointer theme, then Steam will overwrite the default X11 cursor theme, often resulting in a reversed pointer from left to right."

That page also provides a potential client-side fix of defining a default cursor theme for your profile. Hope this helps!

http://wiki.gentoo.org/wiki/Steam#Mouse_cursor

"If your WM/DE does not set a mouse pointer theme, then Steam will overwrite the default X11 cursor theme, often resulting in a reversed pointer from left to right."

That page also provides a potential client-side fix of defining a default cursor theme for your profile. Hope this helps!

@snai

This comment has been minimized.

Show comment
Hide comment
@snai

snai Dec 20, 2012

I am using Gentoo and awesome window manager and can confirm this bug occurs too.

@fragstel I have set a cursor theme but still steam is changing it.

snai commented Dec 20, 2012

I am using Gentoo and awesome window manager and can confirm this bug occurs too.

@fragstel I have set a cursor theme but still steam is changing it.

@patientone

This comment has been minimized.

Show comment
Hide comment
@patientone

patientone Dec 20, 2012

Hmm...Possibly change the file to read-only? I'd be sad if it replaces existing files that have nothing to do with Steam or any game.

Hmm...Possibly change the file to read-only? I'd be sad if it replaces existing files that have nothing to do with Steam or any game.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 20, 2012

The Gentoo description is wrong: My WM has set a mouse pointer theme (Oxygen Black), Steam simply overwrites it. Also changing it back while Steam is running doesn't work.

The pointer theme that Steam is forcing globally on all apps is called "xsetroot -cursor_name arrow", which is only used by very old apps for selecting menu items. So they just confused "arrow" with "right_arrow" or "default_ptr". But Steam should not change or lock the global cursor theme at all.

ghost commented Dec 20, 2012

The Gentoo description is wrong: My WM has set a mouse pointer theme (Oxygen Black), Steam simply overwrites it. Also changing it back while Steam is running doesn't work.

The pointer theme that Steam is forcing globally on all apps is called "xsetroot -cursor_name arrow", which is only used by very old apps for selecting menu items. So they just confused "arrow" with "right_arrow" or "default_ptr". But Steam should not change or lock the global cursor theme at all.

@STrRedWolf

This comment has been minimized.

Show comment
Hide comment
@STrRedWolf

STrRedWolf Dec 20, 2012

I can confirm in Gentoo that Steam changes the cursor theme no matter what the original is. I'm using KDE on Gentoo.

I can confirm in Gentoo that Steam changes the cursor theme no matter what the original is. I'm using KDE on Gentoo.

@patientone

This comment has been minimized.

Show comment
Hide comment
@patientone

patientone Dec 20, 2012

Hopefully they will address this as it is a major issue (even if not everyone experiences it).

As for workarounds, does the below link help at all?

https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten

Hopefully they will address this as it is a major issue (even if not everyone experiences it).

As for workarounds, does the below link help at all?

https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten

@zainin

This comment has been minimized.

Show comment
Hide comment
@zainin

zainin Dec 20, 2012

Yes, this workaround works.

zainin commented Dec 20, 2012

Yes, this workaround works.

@vially

This comment has been minimized.

Show comment
Hide comment

vially commented Dec 20, 2012

👍

@mdaffin

This comment has been minimized.

Show comment
Hide comment
@mdaffin

mdaffin Dec 20, 2012

Contributor

I also suffer from this and non of the workarounds see to help :(

Running kde 4.10 on Archlinux.

Contributor

mdaffin commented Dec 20, 2012

I also suffer from this and non of the workarounds see to help :(

Running kde 4.10 on Archlinux.

@patientone

This comment has been minimized.

Show comment
Hide comment
@patientone

patientone Dec 20, 2012

@James147 not sure if it will help considering you are on KDE, but have you tried installing gnome-cursors-fix from the AUR?

@James147 not sure if it will help considering you are on KDE, but have you tried installing gnome-cursors-fix from the AUR?

@mdaffin

This comment has been minimized.

Show comment
Hide comment
@mdaffin

mdaffin Dec 20, 2012

Contributor

@fragstel turns out the fix only works with the Adwaita theme :( was attempting to use my native Oxygen one instead... so it isn't really a fix... just another cursor.

Contributor

mdaffin commented Dec 20, 2012

@fragstel turns out the fix only works with the Adwaita theme :( was attempting to use my native Oxygen one instead... so it isn't really a fix... just another cursor.

@bldewolf

This comment has been minimized.

Show comment
Hide comment
@bldewolf

bldewolf Dec 20, 2012

This is really bizarre. I was working on an LD_PRELOAD hack to stop this when I realized that Steam is repeatedly changing the X cursor. Don't believe me? Install ltrace and run Steam as:

DEBUGGER="ltrace -e XDefineCursor" steam

You'll see that it recklessly hammers away with:

vgui2_s.so->XDefineCursor(0xa216cd8, 243, 0x2a00010, 0xffd6c490) = 1

repeatedly. I'm not sure what the intended behavior here is, but it definitely doesn't seem right.

Anyway, I have a repo with the LD_PRELOAD hack to neuter the cursor changing properly over at https://github.com/bldewolf/steam-cursorfix

This is really bizarre. I was working on an LD_PRELOAD hack to stop this when I realized that Steam is repeatedly changing the X cursor. Don't believe me? Install ltrace and run Steam as:

DEBUGGER="ltrace -e XDefineCursor" steam

You'll see that it recklessly hammers away with:

vgui2_s.so->XDefineCursor(0xa216cd8, 243, 0x2a00010, 0xffd6c490) = 1

repeatedly. I'm not sure what the intended behavior here is, but it definitely doesn't seem right.

Anyway, I have a repo with the LD_PRELOAD hack to neuter the cursor changing properly over at https://github.com/bldewolf/steam-cursorfix

@teplyakoff

This comment has been minimized.

Show comment
Hide comment
@teplyakoff

teplyakoff Dec 20, 2012

Same issue. Cursor is changed and points to wrong direction and still wrong after steam was closed.
LXDE, archlinux

Same issue. Cursor is changed and points to wrong direction and still wrong after steam was closed.
LXDE, archlinux

@Salamek

This comment has been minimized.

Show comment
Hide comment
@Salamek

Salamek Dec 20, 2012

Same here, please Steam, DONT TOUCH MY CURSOR!!! :-)

Salamek commented Dec 20, 2012

Same here, please Steam, DONT TOUCH MY CURSOR!!! :-)

@danbruegge

This comment has been minimized.

Show comment
Hide comment
@danbruegge

danbruegge Dec 21, 2012

"Same here, please Steam, DONT TOUCH MY CURSOR!!! :-)" +1

"Same here, please Steam, DONT TOUCH MY CURSOR!!! :-)" +1

@torval

This comment has been minimized.

Show comment
Hide comment
@torval

torval Dec 21, 2012

Mine is only inverted when I am actually pointing at something in the Steam window. As soon as I scroll off of it to my other monitor, it reverts back to the original pointer.

I would still like a fix for this however; I do not like the inverted cursor. It messes with my brain.

torval commented Dec 21, 2012

Mine is only inverted when I am actually pointing at something in the Steam window. As soon as I scroll off of it to my other monitor, it reverts back to the original pointer.

I would still like a fix for this however; I do not like the inverted cursor. It messes with my brain.

@mdaffin

This comment has been minimized.

Show comment
Hide comment
@mdaffin

mdaffin Dec 21, 2012

Contributor

@torval mine also revert back to normal on most applications, but on some applications (like when I hover over a menu in chromium) I get the backwards cursor (this does not happen before launching steam and continues after steam is closed).

Contributor

mdaffin commented Dec 21, 2012

@torval mine also revert back to normal on most applications, but on some applications (like when I hover over a menu in chromium) I get the backwards cursor (this does not happen before launching steam and continues after steam is closed).

@bldewolf

This comment has been minimized.

Show comment
Hide comment
@bldewolf

bldewolf Dec 21, 2012

@torval @James147 I believe the reason that the cursor is broken in some applications and okay in others is that the X cursor, if it isn't set, is inherited from the root window. Steam changes the root window's cursor, so windows that have a cursor specified are still okay. (I suspect they didn't catch this because their test case involved a desktop application covering the root window so they never noticed?)

@torval @James147 I believe the reason that the cursor is broken in some applications and okay in others is that the X cursor, if it isn't set, is inherited from the root window. Steam changes the root window's cursor, so windows that have a cursor specified are still okay. (I suspect they didn't catch this because their test case involved a desktop application covering the root window so they never noticed?)

@XeHK

This comment has been minimized.

Show comment
Hide comment
@XeHK

XeHK Dec 23, 2012

I've just putted 'cursors' dir and 'index.theme' file of my cursor theme to ~/.icons/default directory and replaced in 'cursors' dir 'right_ptr' & 'right_side' with 'left_ptr' & 'left_side' file copies so they are the same now, and when steam makes my cursor right-sided I don't see any difference.

XeHK commented Dec 23, 2012

I've just putted 'cursors' dir and 'index.theme' file of my cursor theme to ~/.icons/default directory and replaced in 'cursors' dir 'right_ptr' & 'right_side' with 'left_ptr' & 'left_side' file copies so they are the same now, and when steam makes my cursor right-sided I don't see any difference.

@Nemoder

This comment has been minimized.

Show comment
Hide comment
@Nemoder

Nemoder Dec 25, 2012

@bldewolf thanks for posting the LD_PRELOAD hack, it's the only thing that has solved this for me.

Nemoder commented Dec 25, 2012

@bldewolf thanks for posting the LD_PRELOAD hack, it's the only thing that has solved this for me.

@Saeron

This comment has been minimized.

Show comment
Hide comment
@Saeron

Saeron Dec 28, 2012

I have the same problem whit archlinux + xfce , and is really annoying. I dont want change my theme for one aplication, and i think that valve is who should fixed, not a hack.

Saeron commented Dec 28, 2012

I have the same problem whit archlinux + xfce , and is really annoying. I dont want change my theme for one aplication, and i think that valve is who should fixed, not a hack.

@ghost ghost assigned johnv-valve Dec 29, 2012

@johnv-valve

This comment has been minimized.

Show comment
Hide comment
@johnv-valve

johnv-valve Dec 29, 2012

Contributor

I think I have a fix for the Steam cursors affecting other windows. If anybody has a good repro for this on Ubuntu & Unity, that will help me verify that it's really fixed.

Contributor

johnv-valve commented Dec 29, 2012

I think I have a fix for the Steam cursors affecting other windows. If anybody has a good repro for this on Ubuntu & Unity, that will help me verify that it's really fixed.

@Salamek

This comment has been minimized.

Show comment
Hide comment
@Salamek

Salamek Dec 29, 2012

@johnv-valve Ehmm i have just another idea, just dont touch our cursors at all! remove that piece of code from steam!
Its still normal window in DE...

Salamek commented Dec 29, 2012

@johnv-valve Ehmm i have just another idea, just dont touch our cursors at all! remove that piece of code from steam!
Its still normal window in DE...

@Saeron

This comment has been minimized.

Show comment
Hide comment
@Saeron

Saeron Dec 29, 2012

I dont understand why you need Ubuntu & Unity ? , is not arhc +xfce linux too?. If you need my help, i can try.

Saeron commented Dec 29, 2012

I dont understand why you need Ubuntu & Unity ? , is not arhc +xfce linux too?. If you need my help, i can try.

@STrRedWolf

This comment has been minimized.

Show comment
Hide comment
@STrRedWolf

STrRedWolf Dec 29, 2012

I have the XFCE based Ubuntu (xubuntu) here for any testing. Same username here as over there.

I have the XFCE based Ubuntu (xubuntu) here for any testing. Same username here as over there.

@Freso

This comment has been minimized.

Show comment
Hide comment
@Freso

Freso Dec 29, 2012

@johnv-valve I can reproduce on Arch Linux with LXDE. Feel free to poke me. However, the proper Linux-way would be to not change the cursors from whatever is chosen in the DE/X environment, as @Salamek pointed out.

Freso commented Dec 29, 2012

@johnv-valve I can reproduce on Arch Linux with LXDE. Feel free to poke me. However, the proper Linux-way would be to not change the cursors from whatever is chosen in the DE/X environment, as @Salamek pointed out.

@pete83

This comment has been minimized.

Show comment
Hide comment
@pete83

pete83 Jan 1, 2013

Can confirm this bug on Ubuntu 12.10 with Gnome Shell as DE...
xsetroot -cursor_name left_ptr
works as a temporary workaround on my machine. The solution given in
https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten
seems to have fixed my problem permanently (no long term test yet...)

pete83 commented Jan 1, 2013

Can confirm this bug on Ubuntu 12.10 with Gnome Shell as DE...
xsetroot -cursor_name left_ptr
works as a temporary workaround on my machine. The solution given in
https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten
seems to have fixed my problem permanently (no long term test yet...)

@keithzg

This comment has been minimized.

Show comment
Hide comment
@keithzg

keithzg Jan 1, 2013

Verified with Kubuntu 12.10 running KDE 4.9.3. Creating all the symlinks for arrow, left_side, etc as per https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten worked for me. Extremely silly for Steam to be changing the cursor.

keithzg commented Jan 1, 2013

Verified with Kubuntu 12.10 running KDE 4.9.3. Creating all the symlinks for arrow, left_side, etc as per https://wiki.archlinux.org/index.php/Steam#Mouse_Cursor_Overwritten worked for me. Extremely silly for Steam to be changing the cursor.

@Saeron

This comment has been minimized.

Show comment
Hide comment
@Saeron

Saeron Jan 1, 2013

The solution is simply change the cursor theme to adwaita, but the problem is that steam should not change the global mouse cursor theme. I posible that this fails is for the problems whit gtk2 vs gtk3. Maybe need themes for gtk3.

Saeron commented Jan 1, 2013

The solution is simply change the cursor theme to adwaita, but the problem is that steam should not change the global mouse cursor theme. I posible that this fails is for the problems whit gtk2 vs gtk3. Maybe need themes for gtk3.

@LiamDawe

This comment has been minimized.

Show comment
Hide comment
@LiamDawe

LiamDawe Jan 4, 2013

Contributor

I noticed this too since i recently switched to kde as the unity launcher is a pain to properly work with. Moving my mouse over steam gives me a different cursor, please don't do this.

Contributor

LiamDawe commented Jan 4, 2013

I noticed this too since i recently switched to kde as the unity launcher is a pain to properly work with. Moving my mouse over steam gives me a different cursor, please don't do this.

@Gps2010

This comment has been minimized.

Show comment
Hide comment
@Gps2010

Gps2010 Jan 5, 2013

Happens also on openSuse 64 bit KDE

In steam mouse points the other way.

Gps2010 commented Jan 5, 2013

Happens also on openSuse 64 bit KDE

In steam mouse points the other way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment