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 200% cursor scaling not respected on Ubuntu 22.04 Gnome #112

Open
ComplexPlane opened this issue Nov 7, 2022 · 8 comments
Open

HiDPI 200% cursor scaling not respected on Ubuntu 22.04 Gnome #112

ComplexPlane opened this issue Nov 7, 2022 · 8 comments

Comments

@ComplexPlane
Copy link

I have 200% scaling set on Ubuntu 22.04 (Gnome), but the cursor in flatpak MPV looks like it is scaled at 100% (half what it should be). This isn't an issue in mpv from apt (both v0.34.1).

@fastrizwaan
Copy link
Collaborator

Does it also happen with other flatpak based mpv like celluloid?
https://flathub.org/apps/details/io.github.celluloid_player.Celluloid

@ComplexPlane
Copy link
Author

ComplexPlane commented Nov 7, 2022

Cursor looks correct on celluloid flatpak for me

@fastrizwaan
Copy link
Collaborator

fastrizwaan commented Nov 8, 2022

Run this and restart flatpak mpv:

sudo flatpak override --env=XCURSOR_SIZE=64 io.mpv.Mpv .

run this:
gsettings set org.gnome.desktop.interface cursor-size 64

or use accessibility->Cursor size to set
image

Since, I am using debian testing (bookworm) = gnome+adwaita-theme+xorg+nvidia, and tweaks tool scaling factor to 2.0 change does not change cursor size.

@Xathros1
Copy link

See how this was solved in Signal flatpak:
flathub/org.signal.Signal@831398d

@fastrizwaan
Copy link
Collaborator

please check #154

@Xathros1
Copy link

please check #154

no, it didn't fix the issue unfortunately.

@fastrizwaan
Copy link
Collaborator

fastrizwaan commented Mar 31, 2023

It is not related to mpv flatpak but freedesktop sdk in general.

I'd suggest reporting this issue to flatpak.

@Xathros1
Copy link

Xathros1 commented May 5, 2023

I've found a solution which does work for me.

In my case it was necessary to add Adwaita as the cursor theme additionally to the cursor size mentioned above

2023-05-05 16-29-51

flatpak --user override --env=XCURSOR_THEME=Adwaita io.mpv.Mpv
flatpak --user override --env=XCURSOR_SIZE=32 io.mpv.Mpv

btw about cursor sizes (Gnome Accessibility - Mouse pointer size)
small (default) = 24, medium = 32, large = 48, larger = 64, largest = 96;

without specifying the theme it won't adjust it for whatever reason.

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

3 participants