Set XCURSOR_SIZE to fix cursor changing size#425
Conversation
|
This is a good tip and is working for me by setting XCURSOR_SIZE in my dwl start up script. Not sure about this particular implementation though as there may be users already setting this variable in their environment outside of dwl. This patch would just overwrite any existing environment setting with no way to use an externally set value. |
Actually setting XCURSOR_{THEME,SIZE} it the compositor's job, the reason dwl doesn't set it is because it doesn't let the user to customize the cursor |
|
Thanks! |
|
Haha I stand corrected. ;) |
When I hover a cursor over various clients, the cursor changes its size. For example, it's normal size on foot and becomes bigger in qutebrowser. I figured out that these clients use
XCURSOR_SIZEenv variable to determine appropriate cursor size and when it's unset, they fallback to using some default value. I presume this default is not the same on all clients, this is why cursor size changes. This PR adds asetenvcall to make sureXCURSOR_SIZEis set to the proper value.