Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setcursor doesn't apply immediately #4221

Open
notpeelz opened this issue Dec 22, 2023 · 6 comments
Open

setcursor doesn't apply immediately #4221

notpeelz opened this issue Dec 22, 2023 · 6 comments
Labels
0: low prio Low priority - minor impact on usability bug Something isn't working

Comments

@notpeelz
Copy link

notpeelz commented Dec 22, 2023

Hyprland Version

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

Bug or Regression?

Bug

Description

hyprctl setcursor doesn't take effect immediately.

bug-set-cursor-hyprland.mp4

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

@notpeelz notpeelz added the bug Something isn't working label Dec 22, 2023
@brettalcox
Copy link
Contributor

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

@notpeelz
Copy link
Author

amdgpu here (RX 6900 XT)

@silentsonata
Copy link

Same problem here. I am on nvidia.

@NotAShelf NotAShelf added the 0: low prio Low priority - minor impact on usability label Jan 1, 2024
@kiuKisas
Copy link

kiuKisas commented Feb 3, 2024

recording_compressed.mp4

Same issue, and some others regarding the cursor:

  • not apply with hover_icon_on_border
  • if going slowly between two windows ( kitty & firefox from the capture), the cursor is not set; but it is when going fast
  • sometime it's set again (e.g. cursor to the comment section on github) but sometime it doesn't (e.g. when selecting text on kitty)
  • not set when coming back from cursor_inactive_timeout
  • not set when resizing through bindm ... resizewindow

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
Copy link

M0-7 commented Feb 12, 2024

I have the same issue

@alexhraber
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0: low prio Low priority - minor impact on usability bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants