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

[hidpi] [XWAYLAND] XWayland mouse is tiny when on the edge of a window despite XCURSOR_SIZE env var #1311

Closed
TheSunCat opened this issue Jan 2, 2023 · 13 comments
Labels
bug Something isn't working

Comments

@TheSunCat
Copy link

I'm using the XWayland hidpi patches, and have to export XCURSOR_SIZE=48 to get a normal-sized cursor when over an XWayland app. However, if I move the cursor to the edge of a window, it becomes tiny yet again as if the variable were not exported. This does not occur in Sway with the same patches.

2023-01-02.12-13-05.mp4
@TheSunCat TheSunCat added the bug Something isn't working label Jan 2, 2023
@vaxerski
Copy link
Member

vaxerski commented Jan 2, 2023

that's happening to me as well and seems to have just sprung up randomly, interestingly only on my laptop and not desktop. Can you try bisecting?

(I assume you tested sway-git)

Edit: actually just tested and it's not happening on my laptop either. odd.

@TheSunCat
Copy link
Author

It's happened for as long as I remember with the hidpi patches. I don't know of any good commits.

@ywxt
Copy link

ywxt commented Jan 6, 2023

same issue, and some XWayland applications(Microsoft Edge, VSCode and IntelliJ IDEA) have smaller cursor size.

I installed hyprland-hidpi-xprop-git, and then set monitor scale as 2. GDK_SCALE is useless to fix it.

Maybe it's a problem with the aur package, I need to troubleshoot.

@vaxerski
Copy link
Member

vaxerski commented Jan 6, 2023

can't repro any.

@ywxt
Copy link

ywxt commented Jan 6, 2023

I found default XCURSOR_SiZE is 32. After unset the variable, The cursor size of the Xwayland apps is back to normal.

Is there a way to automatically unset the variable after hyprland starts, I tried to execute in hyprland.conf, but it has no effect.

This is same issue on wayfire, I believe it is a bug of Xwayland.

@TheSunCat
Copy link
Author

can't repro any.

The small cursor only happens on tiled windows. Are you testing with a similar setup as me?

@ywxt
Copy link

ywxt commented Jan 7, 2023

I see. I set Xft.dpi=192. After I remove it, I got a normal cursor size.

However, I need Xft.dpi, because fcitx5 depends on it in XWayland applications.

A tiny cursor on the edge of a window has always existed.

@TheSunCat
Copy link
Author

I was able to fix it by running xsetroot -xcf /usr/share/icons/$your_cursor_theme_name/cursors/left_ptr 48! The mouse is no longer tiny when on the edge of a hidpi Xwayland app.

@LeoGitHuber
Copy link

I see. I set Xft.dpi=192. After I remove it, I got a normal cursor size.

However, I need Xft.dpi, because fcitx5 depends on it in XWayland applications.

A tiny cursor on the edge of a window has always existed.

Could you tell me about how to make fcitx5 display the normal size in XWayland applications? By the way, have you solved the tiny cursor problem?

@ywxt
Copy link

ywxt commented Mar 24, 2023 via email

@ywxt
Copy link

ywxt commented Mar 24, 2023 via email

@LeoGitHuber
Copy link

Thanks, it works.

@techsavvyumer
Copy link

techsavvyumer commented Mar 28, 2023

I had the same issue, cursor got small i.e 24px when using QT applications or on desktop. I wanted it to be 32px as in GTK applications I set it to 32px.
In my hyprland config file, I set the "env = XCURSOR_SIZE = 32". I don't know what's wrong with "env = XCURSOR_SIZE = 32" it didn't work.
Then I wrote it as "env = XCURSOR_SIZE,32" and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants