Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

The cursor appears when focus changes when the option cursor:hide_on_key_press is enabled

Open AlexDev2020 opened this issue 1 year ago • 2 comments

Regression?

No

System Info and Version

System/Version info
Hyprland, built from branch  at commit 9e781040d9067c2711ec2e9f5b47b76ef70762b3  (props: bump version to 0.41.1).
Date: Thu Jun 13 09:54:06 2024
Tag: v0.41.1, commits: 4818

flags: (if any)


System Information:
System name: Linux
Node name: archlinux
Release: 6.9.5-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:18 +0000


GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

======Config-Start======


Config File: /home/alex/.config/hypr/hyprland.conf: Read Succeeded
env = XDG_SESSION_DESKTOP,                 Hyprland
env = GDK_BACKEND,                         wayland
env = SDL_VIDEODRIVER,                     wayland
env = CLUTTER_BACKEND,                     wayland
env = QT_QPA_PLATFORM,                     wayland
env = QT_AUTO_SCREEN_SCALE_FACTOR,         1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1

monitor =      , preferred,    auto, 1
monitor = eDP-1, 1920x1080@60, 0x0,  1

# gaps_workspaces
# col.nogroup_border
# col.nogroup_border_active
# layout

general {
    gaps_in                          = 10
    gaps_out                         = 15
    border_size                      = 2
    col.active_border                = rgb(ebdbb2)
    col.inactive_border              = rgb(3c3836)
}

# active_opacity
# inactive_opacity
# fullscreen_opacity

decoration {
    rounding                         = 10
    drop_shadow                      = false
}

animations {
    enabled = true
    # Animation curves

    bezier = linear, 0, 0, 1, 1
    bezier = md3_standard, 0.2, 0, 0, 1
    bezier = md3_decel, 0.05, 0.7, 0.1, 1
    bezier = md3_accel, 0.3, 0, 0.8, 0.15
    bezier = overshot, 0.05, 0.9, 0.1, 1.1
    bezier = crazyshot, 0.1, 1.5, 0.76, 0.92
    bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0
    bezier = menu_decel, 0.1, 1, 0, 1
    bezier = menu_accel, 0.38, 0.04, 1, 0.07
    bezier = easeInOutCirc, 0.85, 0, 0.15, 1
    bezier = easeOutCirc, 0, 0.55, 0.45, 1
    bezier = easeOutExpo, 0.16, 1, 0.3, 1
    bezier = softAcDecel, 0.26, 0.26, 0.15, 1
    bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration
    # Animation configs
    animation = windows, 1, 3, md3_decel, popin 60%
    animation = windowsIn, 1, 3, md3_decel, popin 60%
    animation = windowsOut, 1, 3, md3_accel, popin 60%
    animation = border, 1, 10, default
    animation = fade, 1, 3, md3_decel
    # animation = layers, 1, 2, md3_decel, slide
    animation = layersIn, 1, 3, menu_decel, slide
    animation = layersOut, 1, 1.6, menu_accel
    animation = fadeLayersIn, 1, 2, menu_decel
    animation = fadeLayersOut, 1, 4.5, menu_accel
    animation = workspaces, 1, 7, menu_decel, slide
    # animation = workspaces, 1, 2.5, softAcDecel, slide
    # animation = workspaces, 1, 7, menu_decel, slidefade 15%
    # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
    animation = specialWorkspace, 1, 3, md3_decel, slidevert
}

input {
    kb_layout                        = us,ru
    repeat_rate                      = 30
    repeat_delay                     = 500
    sensitivity                      = 0.0
    accel_profile                    = flat
    follow_mouse                     = 2
    float_switch_override_focus      = 0

    touchpad {
        scroll_factor                = 0.3
        natural_scroll               = true
    }
}

misc {
    disable_splash_rendering = true
    disable_hyprland_logo = true
    background_color = rgb(282828)
    enable_swallow = true
    swallow_regex = ^Alacritty
    font_family = JetBrains Mono
    middle_click_paste = false
    always_follow_on_dnd = false
    mouse_move_focuses_monitor = false
    new_window_takes_over_fullscreen = 2
}


cursor {
    no_warps = true
    hide_on_key_press = true
}

bind  = super,       1,     workspace, 1
bind  = super,       2,     workspace, 2
bind  = super,       3,     workspace, 3
bind  = super,       4,     workspace, 4
bind  = super,       5,     workspace, 5
bind  = super,       6,     workspace, 6
bind  = super,       7,     workspace, 7
bind  = super,       8,     workspace, 8
bind  = super,       9,     workspace, 9

bind  = super,       up,    movefocus, u
bind  = super,       down,  movefocus, d
bind  = super,       left,  movefocus, l
bind  = super,       right, movefocus, r

bind  = super_alt,   up,    movewindow, u
bind  = super_alt,   down,  movewindow, d
bind  = super_alt,   left,  movewindow, l
bind  = super_alt,   right, movewindow, r

binde = super_ctrl,  up,    moveactive, 0 -10
binde = super_ctrl,  down,  moveactive, 0 10
binde = super_ctrl,  left,  moveactive, -15 0
binde = super_ctrl,  right, moveactive, 15 0

binde = super_shift, up,    resizeactive, 0 -10
binde = super_shift, down,  resizeactive, 0 10
binde = super_shift, left,  resizeactive, -15 0
binde = super_shift, right, resizeactive, 15 0

bind = super_shift, e, exit
bind = super_shift, r, exec, hyprctl reload

bind  = super, q, killactive
bind  = super, f, fullscreen
bind  = super, c, centerwindow
bind  = super, space, togglefloating
bind  = super, space, centerwindow
bind  = super, return, exec, alacritty
bind  = super_shift, return, exec, [float] alacritty

bindlr = super_shift, shift_l, exec, hyprctl switchxkblayout at-translated-set-2-keyboard 0
bindlr = super_shift, shift_r, exec, hyprctl switchxkblayout at-translated-set-2-keyboard 1

bind = SUPER, 0, togglespecialworkspace,
bind = SUPERSHIFT, 0, movetoworkspacesilent, special

======Config-End========

Description

When using the keys to move focus from one window to another, the cursor appears and disappears again, but I did not move the cursor

How to reproduce

  1. add cursor:hide_on_key_press = true
  2. move focus from one window to another using the keyboard

Expected behavior: cursor will not appear when changing focus using keyboard. Actual behavior: the cursor appears and disappears again when changing focus using the keyboard.

Crash reports, logs, images, videos

No response

AlexDev2020 avatar Jun 19 '24 12:06 AlexDev2020

Is there any roadmap on this? It would be cool to have this fixed

Some additional info that might be helpful: this seems to occur with: movefocus cyclenext focusmonitor move(current)workspacetomonitor focusworkspaceoncurrentmonitor

I couldn't replicate with some other dispatchers: swapnext focuswindow swapactiveworkspaces movetoworkspace(silent) movewindow resizeactive (togglespecial)workspace

winkelnp avatar Nov 10 '24 12:11 winkelnp

mrs welcome

vaxerski avatar Nov 11 '24 00:11 vaxerski

Hello there!

This issue has been closed, as we are moving from issues to discussions. More about this can be found here and in #9854.

Firstly, please make sure this issue is still relevant in latest Hyprland. If so, we ask you to open a discussion (please read the discussion guidelines first, in the pinned post)

Thank you for your understanding!

vaxerski avatar Apr 05 '25 19:04 vaxerski