hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.08k stars 755 forks source link

setcursor doesn't apply immediately #4221

Open notpeelz opened 6 months ago

notpeelz commented 6 months ago

Hyprland Version

Hyprland, built from branch HEAD at commit d74607e414dcd16911089a6d4b6aeb661c880923 (props: bump ver to 0.33.1)

Bug or Regression?

Bug

Description

hyprctl setcursor doesn't take effect immediately.

https://github.com/hyprwm/Hyprland/assets/920910/839bd829-0c50-40b2-8019-93690210787a

On startup, Hyprland will show the default cursor until I start moving the mouse around.

This is what I have in my config file:

$cursor-theme = capitaine-cursors
$cursor-size = 48
env = XCURSOR_SIZE,$cursor-size
env = XCURSOR_THEME,$cursor-theme
exec = hyprctl setcursor $cursor-theme $cursor-size
exec = gsettings set org.gnome.desktop.interface cursor-theme $cursor-theme
exec = gsettings set org.gnome.desktop.interface cursor-size $cursor-size

How to reproduce

.

Crash reports, logs, images, videos

No response

brettalcox commented 6 months ago

Same issue here. Except I'm on Nvidia, so I have an invisible cursor for about 15-30 seconds until it kicks in

notpeelz commented 6 months ago

amdgpu here (RX 6900 XT)

silentsonata commented 6 months ago

Same problem here. I am on nvidia.

kiuKisas commented 5 months ago

https://github.com/hyprwm/Hyprland/assets/12698940/47089ea6-a999-42e1-84db-58ea558842ad

Same issue, and some others regarding the cursor:

Hyprland version:

❯ hyprctl version
Hyprland, built from branch main at commit a0b675ec9e57af8bc631fc8cc54d062b58669a9f dirty (binds: add ignoreMods flag).
Tag: v0.31.0-7-ga0b675ec

flags: (if any)
debug

Hyprland config relevant to cursors:

general {

    gaps_in = 5
    gaps_out = 10
    border_size = 1
    no_cursor_warps = true
    cursor_inactive_timeout = 3
    resize_on_border = true
    hover_icon_on_border = true
}
input {
    follow_mouse = 1
    mouse_refocus = false
}
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
exec-once=hyprctl setcursor Catpuccin-Macchiato-Peach 24

Also, the cursor is set on gtk through nwg-look. system:

CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 (8) @ 4.70 GHz
GPU: Intel Iris Xe Graphics
M0-7 commented 4 months ago

I have the same issue

alexhraber commented 4 months ago

same, it never loads even after several minutes. I used the example from the docs: hyprctl setcursor Bibata-Modern-Classic 24