Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Cursor disappears

Open hdm9527 opened this issue 1 year ago • 14 comments
trafficstars

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 70ebc3add3b941a52f460f02129ef0842f580ec7 dirty (sessionLock: call wlr_surface_map/_unmap on the surface manually).
Date: Wed May 1 04:59:07 2024
Tag: v0.39.1-115-g70ebc3ad, commits: 4575

flags: (if any)


System Information:
System name: Linux
Node name: Arch
Release: 6.8.8-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sun, 28 Apr 2024 15:59:30 +0000


GPU information: 
64:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c7) (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:

Bug or Regression?

Bug

Description

On some sites, the cursor disappears when placed on an image.

How to reproduce

test url

Crash reports, logs, images, videos

https://github.com/hyprwm/Hyprland/assets/39702328/f8778949-4bb0-4d6e-8113-2be60720f749

hdm9527 avatar May 01 '24 04:05 hdm9527

image well...

Looks like an issue with the cursor theme?

vaxerski avatar May 01 '24 12:05 vaxerski

image well...

Looks like an issue with the cursor theme?

hyprland stable version in firefox and chromium cursor display, hyprland-git version firefox cursor display, chromium browser cursor disappears.

hdm9527 avatar May 01 '24 13:05 hdm9527

tested again with chromium (I am on git) and the cursor is not disappearing. Have you tried a different theme? Are you using hyprcursor?

vaxerski avatar May 01 '24 15:05 vaxerski

Can repro with --enable-features=UseOzonePlatform --ozone-platform=wayland flags, happens only with some shapes like zoom_in/out or ew_resize

FUFSoB avatar May 01 '24 16:05 FUFSoB

Can repro with --enable-features=UseOzonePlatform --ozone-platform=wayland flags, happens only with some shapes like zoom_in/out or ew_resize

yes

hdm9527 avatar May 01 '24 16:05 hdm9527

tested again with chromium (I am on git) and the cursor is not disappearing. Have you tried a different theme? Are you using hyprcursor?

chromium works under xwayland, it disappears in wayland, use chromium --enable-features=UseOzonePlatform --ozone-platform=wayland to enable wayland.

hdm9527 avatar May 01 '24 16:05 hdm9527

works on my end in both modes. Again, have you tried a different theme? Are you using hyprcursor?

vaxerski avatar May 01 '24 22:05 vaxerski

Happens on all themes I have installed (Bibata, Adwaita and Breeze). Hyprcursor is disabled. If I enable hyprcursor and set theme to hypr_Bibata_Modern_Ice, not only chromium, but also other wayland-native apps stop showing most shapes and fall back to default shape (most noticeable with text in foot), pointer shape still works though.

FUFSoB avatar May 02 '24 04:05 FUFSoB

After using Hyprcursor themes, the cursor works, but chromium loses some cursor styles under wayland and falls back to the default styles. Cursor-Test

https://github.com/hyprwm/Hyprland/assets/39702328/03d32790-f6e1-4300-988f-7f0f5aacb12a

https://github.com/hyprwm/Hyprland/assets/39702328/7cdf7b38-60ab-4914-85f9-1974d34fa036

hdm9527 avatar May 02 '24 07:05 hdm9527

huh. What is the hyprcursor version you have installed?

vaxerski avatar May 02 '24 12:05 vaxerski

huh. What is the hyprcursor version you have installed?

hyprcursor-git-0.1.8.r0.gcab47461-1 latest commit

hdm9527 avatar May 02 '24 12:05 hdm9527

https://github.com/hyprwm/Hyprland/assets/107314235/430fd346-7da7-47b6-94c8-2082d83f6a08

Left half is Firefox (doesn't support hyprcursor) on the cursor test page and right half is kate (supports hyprcursor). col_resize and row_resize are shown to fall back on default pointer on hyprcursor. The theme is extracted from the xcursor Adwaita and compiled from there.

Agent00Ming avatar May 02 '24 13:05 Agent00Ming

this one is a problem with your theme. Make sure you have a shape that fits col_resize and row_resize. Worth noting that due to (ugh) web using - and wl _.

Recommended overrides for the sidey side arrow: image

analogous for toppy bottomy will be with n, s, and row.

vaxerski avatar May 02 '24 13:05 vaxerski

I've committed 84278247194fd04e042821fd171be5ee59b0a8d0 which makes hyprland attempt - first before falling back to a pointer.

vaxerski avatar May 02 '24 13:05 vaxerski

this one is a problem with your theme. Make sure you have a shape that fits col_resize and row_resize. Worth noting that due to (ugh) web using - and wl _.

Recommended overrides for the sidey side arrow: image

analogous for toppy bottomy will be with n, s, and row.

Thanks, it's a problem with the Bibata-Modern-Ice theme, changing the - to _ in the filename works.

hdm9527 avatar May 02 '24 14:05 hdm9527

this one is a problem with your theme. Make sure you have a shape that fits col_resize and row_resize. Worth noting that due to (ugh) web using - and wl _.

That made me check implementation for wlroots and I found out they're using - in their shape_names. Is there a reason for using underscores in Hyprland's re-implementation?

Replacing underscores with dashes resolves initial issue with Xcursors. They do not disappear anymore.

diff.txt

FUFSoB avatar May 02 '24 15:05 FUFSoB

hm, right. Maybe it was a mistake somewhere, I'll fix it.

vaxerski avatar May 02 '24 15:05 vaxerski