I just transitioned to NixOS and have been setting everything up. In Wayland mode (which is much appreciated due to 1.5x scaling for most apps), my cursor appears tiny when in the game. This is on a 28" 4K monitor and so I think that this may be causing the issue when in Wayland mode.
xrandr output for the screen Factorio is on:
DP-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 610mm x 350mm
Image of behavior:
Expected behavior demonstrated when another application is active over it:
Thank you for all that you do!
[raiguard][1.1.107][Linux] Tiny Cursor through Wayland
[raiguard][1.1.107][Linux] Tiny Cursor through Wayland
- Attachments
-
- factorio-current.log
- (4.58 KiB) Downloaded 30 times
Re: [raiguard][1.1.107][Linux] Tiny Cursor through Wayland
SDL2 has some issues with cursor themes that are beyond my power to fix. SDL3 will fix these issues.
Don't forget, you're here forever.
-
- Inserter
- Posts: 35
- Joined: Fri Jun 11, 2021 5:20 pm
- Contact:
Re: [raiguard][1.1.107][Linux] Tiny Cursor through Wayland
According to https://github.com/libsdl-org/SDL/issues/9250, SDL2 seems to have been fixed this on their end, but Factorio needs to update.
So... can we has not tiny cursor on wayland please?
So... can we has not tiny cursor on wayland please?
-
- Manual Inserter
- Posts: 1
- Joined: Fri Nov 01, 2024 5:51 pm
- Contact:
Re: [raiguard][1.1.107][Linux] Tiny Cursor through Wayland
Heya, the issue is still present on the latest version (2.0.13, with Space Age Expansion at the time of writing).
But it's pretty easy to workaround by setting the XCURSOR_THEME and XCURSOR_SIZE environment variables.
For example on Plasma 6 on Arch I use these launch options on steam to get my cursor size to align with the system:
More details about cursor themes can be found on the arch wiki here: https://wiki.archlinux.org/title/Cursor ... t_variable
I found my cursor themes at /usr/share/icons/Breeze_Light/cursors/.
But it's pretty easy to workaround by setting the XCURSOR_THEME and XCURSOR_SIZE environment variables.
For example on Plasma 6 on Arch I use these launch options on steam to get my cursor size to align with the system:
Code: Select all
XCURSOR_THEME=Breeze_Light XCURSOR_SIZE=48 %command%
I found my cursor themes at /usr/share/icons/Breeze_Light/cursors/.
Re: [raiguard][1.1.107][Linux] Tiny Cursor through Wayland
This worked for me too:
Using Plasma 6, you can find the theme name and cursor-size in the systemsettings too:
System Settings -> Color & Design -> Cursor
When I set my cursor size to default size * monitor scale (24 * 150% = 36), the cursor was too large.
For me it worked to just use the same cursor size as specified in the system settings.
Two additions:Okabintaro wrote: ↑Fri Nov 01, 2024 5:56 pmCode: Select all
XCURSOR_THEME=Breeze_Light XCURSOR_SIZE=48 %command%
Using Plasma 6, you can find the theme name and cursor-size in the systemsettings too:
System Settings -> Color & Design -> Cursor
When I set my cursor size to default size * monitor scale (24 * 150% = 36), the cursor was too large.
For me it worked to just use the same cursor size as specified in the system settings.
Last edited by Numerfolt on Thu Nov 07, 2024 3:02 pm, edited 1 time in total.