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

No cursor change on links / buttons and other problems #594

Open
ancorgs opened this issue Aug 14, 2023 · 1 comment
Open

No cursor change on links / buttons and other problems #594

ancorgs opened this issue Aug 14, 2023 · 1 comment

Comments

@ancorgs
Copy link

ancorgs commented Aug 14, 2023

We are building a Linux installer with web interface that will hopefully become the default installer for the next generation of openSUSE and SUSE distributions.

To enable local installation (ie. traditional Linux installation experience), we are creating a demo live system that automatically opens a browser in full screen. Cog sounds perfect for that, but we have found some problems. Let's start with the main one, illustrated in the following video.

cog-problems-2023-08-14_12.19.37.mp4

As you can see, the cursor doesn't change when we run the mouse over a clickable element. That's quite a show stopper from an usability point of view.

In the same video you can also see another problem which is basically the one reported at #327 (no handler for input type=file).

You can try it yourself using this ISO: agama-live-weston-cog.x86_64-openSUSE.iso in any real or virtual machine.

In the ISO we use Cog directly on top of Weston, but we have observed the same issue with other compositors as well (eg. on top of a Gnome Wayland session).

Anything we can do to have a more reactive cursor?

Just since I also mentioned #327, any guidance on how to handle file inputs in our case?

@ancorgs
Copy link
Author

ancorgs commented Aug 16, 2023

Unless I'm mistaken and following a red herring, it looks like this is the code rendering the cursor on Wayland.

https://github.com/Igalia/cog/blob/master/platform/wayland/cog-platform-wl.c#L853
(Originally introduced at #194).

There is a comment there stating that the mouse cursor will not have the appropriate size in HiDPI. So I guess the lack of a hover icon would not be the only problem with cursors in Wayland.

Pinging @aperezdc since I see he is the main author of all that. What's the status regarding mouse cursor hover on one hand and regarding HiDPI on other hand?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant