flathub / io.mpv.Mpv

https://flathub.org/apps/details/io.mpv.Mpv
9 stars 21 forks source link

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

Open ComplexPlane opened 2 years ago

ComplexPlane commented 2 years ago

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 commented 2 years ago

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

ComplexPlane commented 2 years ago

Cursor looks correct on celluloid flatpak for me

fastrizwaan commented 2 years ago

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 commented 1 year ago

See how this was solved in Signal flatpak: https://github.com/flathub/org.signal.Signal/commit/831398d6b89fc2ae75423ef4ee178898b9d2e908

fastrizwaan commented 1 year ago

please check https://github.com/flathub/io.mpv.Mpv/pull/154

Xathros1 commented 1 year ago

please check #154

no, it didn't fix the issue unfortunately.

fastrizwaan commented 1 year ago

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

I'd suggest reporting this issue to flatpak.

Xathros1 commented 1 year ago

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.