My cursor is a X in some contexts where it shouldn’t be. For example, in chromium and slack, hovering over an image that can be zoomed turns the cursor into an X rather than the magnifying glass icon.
A couple details that may be relevant:
my default (root) cursor appears to be the left pointer, not the X.
running NixOS
display manager: lightdm
window manager: XMonad
no desktop environment
The screenshot below shows an example (the big X in the middle is my cursor). Does anyone know what I can do to fix this? Preferably system-wide in my nixos config.
Now the gtk2.0, gtk3.0/settings.ini and .Xresources files in my home are correctly filled with the cursor theme name and size. And indeed I can see in some applications that the Adwaita cursors are correctly shown (like Firefox). However, there are other applications where I still see the “x” cursor (like when the mouse is over the bspwm desktop). In other applications (e.g.: the XFCE mousepad editor) I can see the “x” instead of the classic default cursor but the text cursor is instead correctly taken from the adwaita theme.
I managed to solve it myself. I found the solution in the archlinux wiki ( Cursor themes - ArchWiki ). If bspwm is used, the command $ xsetroot -cursor_name left_ptr must be given in order to get a coherent cursor theme all over. I have added that command in my bspwmrc.