[GTK3] FF 46 uses the wrong cursor theme
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: donrhummy, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: tpi:+)
Attachments
(1 file)
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 7•9 years ago
|
||
Updated•9 years ago
|
Comment 8•9 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•5 years ago
|
||
I looked into this because I'm trying something out with a touchscreen using a second cursor[1]. This resulted in crazy flickering of the cursor. So I tried out a transparent cursor theme[2] but setting the XCURSOR_THEME variable didn't work.
Digging into the GTK source and revision control history it seems like:
- GTK uses libXcursor under the hood, and libXcursor does the default thing it does which presumably includes processing XCURSOR_THEME.
- gtk_settings_create_for_display calls settings_update_cursor_theme which gets "gtk-cursor-theme-name" and if it gets a value back calls gdb_display_set_cursor_theme which clobbers whatever XCURSOR_THEME initialized things to.
- It's always done something roughly like this. The difference is presumably that it started reliably getting a value when it looks up "gtk-cursor-theme-name". I think the lookup process looks like this:
- Under X11:
- Under Wayland
So I created the patch that I'm attaching here that creates a widget.gtk-cursor-theme-override
preference that's applied in the parent (chrome) process when initializing. This seems to work. This could also be made to pull XCURSOR_THEME from the environment as part of a fallback path or something. That said, this seems like a pretty extreme customization to land in the tree as a workaround for X and gtk multi-pointer touch-screen issues. If Firefox were going to do something to aid the touch-screen case, it might be better for touch events to turn off the cursor, leaving it for mouse movement to turn it back on.
1: Created via:
xinput create-master touchy
xinput reattach "Weida Hi-Tech CoolTouchR System " "touchy pointer"
(the device name being specific to my touchscreen)
2: I used https://github.com/shmibs/xcursor-transparent-cursor to create a transparent cursor theme
Comment 12•5 years ago
|
||
Er, as I re-read the bug I think I was mentally creating a mash-up of bug 336665 and my own google searches in my mind relating to XCURSOR_THEME as a means of overriding gtk, with only small pieces of this bug included. Apologies for the largely off-topic response. I'm going to leave my comment visible since the setting mapping links are potentially relevant to explaining the specific situation on this bug.
Updated•2 years ago
|
Comment 13•2 years ago
|
||
No activity for years, closing.
Please reopen if this is still impacting you.
Description
•