Skip to content

Mouse cursor not visible in some xwayland applications #7335

Description

@RononDex

Regression?

Yes

System Info and Version

System/Version info
Hyprland, built from branch  at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259  (props: bump version to 0.42.0).
Date: Wed Aug 7 19:17:10 2024
Tag: v0.42.0, commits: 5069

flags: (if any)


System Information:
System name: Linux
Node name: ATLANTIS-LAB
Release: 6.10.2-arch1-1-vivepro2
Version: #1 SMP PREEMPT_DYNAMIC Wed, 31 Jul 2024 07:19:40 +0000


GPU information: 
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8) (prog-if 00 [VGA controller])
12:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev cb) (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/cobra/.config/hypr/hyprland.conf: Read Succeeded
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#

# See https://wiki.hyprland.org/Configuring/Monitors/

# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
#

misc {
		disable_hyprland_logo = true
		disable_splash_rendering = true
		allow_session_lock_restore = true
}

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = ch
    kb_variant = de
    kb_model =
    kb_options = caps:swapescape
    kb_rules =
    numlock_by_default = true

    follow_mouse = 1
    mouse_refocus = false

    touchpad {
        natural_scroll = yes
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
    accel_profile = flat
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 20
    border_size = 2
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    layout = dwindle

    # allow_tearing = true
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 10
	blur {
		   enabled = true
			size = 4
			passes = 2
			new_optimizations = true
			xray = false
            brightness = 1
            contrast = 1.300000
	}

    active_opacity = 1.00;
    inactive_opacity = 1.00;
    fullscreen_opacity = 1.0;

    drop_shadow = yes
    shadow_range = 25
    shadow_render_power = 3
    col.shadow = rgba(1a1a1acc)
    shadow_ignore_window = true;
    shadow_offset = 2 2
}

animations {
    enabled = yes

    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
	no_gaps_when_only = true
}

master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
    new_status = master
    no_gaps_when_only = true
}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = on
}


cursor {
  no_hardware_cursors = true
}

source=~/.config/hypr/configs/custom-config.conf
source=~/.config/hypr/monitors.conf
source=~/.config/hypr/configs/envs.conf
source=~/.config/hypr/configs/custom-envs.conf
source=~/.config/hypr/configs/setBackground.conf
source=~/.config/hypr/configs/execs.conf
source=~/.config/hypr/configs/custom-execs.conf
source=~/.config/hypr/configs/key-bindings.conf
source=~/.config/hypr/configs/window_rules.conf
source=~/.config/hypr/configs/custom-devices.conf

# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more


Config File: /home/cobra/.config/hypr/configs/custom-config.conf: Read Succeeded
# unscale XWayland
xwayland {
  force_zero_scaling = true
}


Config File: /home/cobra/.config/hypr/monitors.conf: Read Succeeded
# Generated by nwg-displays on 2024-04-01 at 13:19:00. Do not edit manually.
monitor=DP-1,3840x2160@144.0,0x0,1.5
monitor=DP-2,2560x1440@143.86,2560x0,1.0


Config File: /home/cobra/.config/hypr/configs/envs.conf: Read Succeeded
env = GPG_TTY,$(tty)
env = SSH_AUTH_SOCK,$(gpgconf --list-dirs agent-ssh-socket)
env = GDK_BACKEND,wayland,x11
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct
env = ELECTRON_OZONE_PLATFORM_HINT,auto
env = MAKEFLAGS,-j 8
env = GTK_THEME,Colloid-Orange-Dark
env = HYPRCURSOR_SIZE,24
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
env = XCURSOR_THEME,BreezeX-RosePine-Linux
env = XCURSOR_SIZE,24


Config File: /home/cobra/.config/hypr/configs/custom-envs.conf: Read Succeeded
env = GDK_SCALE,2
env = MAKEFLAGS,-j 16


Config File: /home/cobra/.config/hypr/configs/setBackground.conf: Read Succeeded
exec-once=bash ~/.config/hypr/scripts/selectBgImage.sh
source=~/.cache/wal/hyprland-colors.conf


Config File: /home/cobra/.cache/wal/hyprland-colors.conf: Read Succeeded
# https://github.com/dylanaraps/pywal/wiki/User-Template-Files
# pywal's rgb / rgba functions

$wallpaper = /home/cobra/wallpapers/euclid/Euclid_s_view_of_the_Horsehead_Nebula_-_zoom_2.jpg

$background = rgb(3d1b0f)
$foreground = rgb(c5bedc)
$cursor = rgb(c5bedc)

$color0 = rgb(3d1b0f)
$color1 = rgb(BB8973)
$color2 = rgb(6C6199)
$color3 = rgb(7E78C2)
$color4 = rgb(8E779D)
$color5 = rgb(887CC4)
$color6 = rgb(9C8BA9)
$color7 = rgb(c5bedc)
$color8 = rgb(89859a)
$color9 = rgb(BB8973)
$color10 = rgb(6C6199)
$color11 = rgb(7E78C2)
$color12 = rgb(8E779D)
$color13 = rgb(887CC4)
$color14 = rgb(9C8BA9)
$color15 = rgb(c5bedc)


Config File: /home/cobra/.config/hypr/configs/execs.conf: Read Succeeded
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=/usr/lib/polkit-kde-authentication-agent-1
exec-once=waybar
exec-once=nm-applet --indicator
exec-once=blueman-applet
exec-once=dunst
exec-once=wlsunset -l 47.3 -L 8.5
exec-once=sleep 2s && nextcloud --background
exec-once=bash ~/.config/hypr/scripts/portal-startup.sh
exec=import-gsettings
exec-once=hypridle
exec=gsettings set $gnome-schema icon-theme 'Colloid-Orange-Dracula-Dark'
exec-once=hyprctl setcursor Dracula 24


Config File: /home/cobra/.config/hypr/configs/custom-execs.conf: Read Succeeded
exec-once=ckb-next -b
exec-once=/usr/lib/polkit-kde-authentication-agent-1
exec-once=sleep 10 && pkill wlsunset


Config File: /home/cobra/.config/hypr/configs/key-bindings.conf: Read Succeeded
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod SHIFT, Q, killactive, 
bind = $mainMod SHIFT, E, exit, 
bind = $mainMod, E, exec, nautilus
bind = $mainMod, N, exec, bash ~/.config/hypr/scripts/selectBgImage.sh
bind = $mainMod, F, fullscreen
bind = $mainMod, SPACE, togglefloating, 
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, S, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, H, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, L, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, K, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, J, movefocus, d

# Move window with mainMod + arrow keys
bind = $mainMod SHIFT, left, movewindow, l
bind = $mainMod SHIFT, H, movewindow, l
bind = $mainMod SHIFT, right, movewindow, r
bind = $mainMod SHIFT, L, movewindow, r
bind = $mainMod SHIFT, up, movewindow, u
bind = $mainMod SHIFT, K, movewindow, u
bind = $mainMod SHIFT, down, movewindow, d
bind = $mainMod SHIFT, J, movewindow, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Grouping
bind = $mainMod, G, togglegroup

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Apps
bind = $mainMod, D, exec, wofi --show drun --allow-images --insensitive
bind = $mainMod, Return, exec, kitty
bind = $mainMod SHIFT, A, exec, hyprlock

# Screenshoting
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | swappy -f -  
bind = $mainMod SHIFT, P, exec, grim ~/screens/$(date +'%s_grim.png')


Config File: /home/cobra/.config/hypr/configs/window_rules.conf: Read Succeeded

windowrule = opacity 0.92 override 0.65 override,^(kitty)$ # set opacity to 0.9 active and 0.65 inactive for kitty
windowrule = opacity 0.9 override 0.65 override,^(signal)$
windowrule = opacity 0.9 override 0.65 override,^(org.gnome.Nautilus)$
windowrule = opacity 0.9 override 0.65 override,^(Org.gnome.Nautilus)$

windowrulev2 = immediate, class:^(cs2)$


Config File: /home/cobra/.config/hypr/configs/custom-devices.conf: Read Succeeded
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device {
    name = epic mouse V1
    sensitivity = -0.5
}

device {
    name = roccat-roccat-kone-aimo-16k-mouse
    sensitivity = -0.5
}

device {
    name = roccat-roccat-kone-emp-mouse
    sensitivity = -0.5
}

device {
    name = roccat-roccat-kone-xp
    sensitivity = -0.5
}

# Laptop touchpad
device {
    name = elan0763:00-04f3:31ec-touchpad
    accel_profile = adaptive
    sensitivity = 0
}

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

Description

I am still having the issue mentioned in #7107 in hyprland 0.42.0

I also noticed that other applications (for example tigervnc) have the same issue. Althout the cursor appears after moving the cursor out of tigervnc and back in again.

How to reproduce

Open prusa-slicer (slicing program for Prusa 3d Printers, contained in official Arch repositories) and move cursor around --> No cursor visible while the cursor inside prusa-slicer

Crash reports, logs, images, videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions