pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

[Scaling issue?] Mouse cursor, time applet & workspace numbers applet have different sizes #488

Open onlyreportingissues opened 1 month ago

onlyreportingissues commented 1 month ago

Video_2024-05-18_14-19-13.webm

VLC mouse cursor is oversized also (and uses Adwaita mouse icon for some reason). Both Brave & VLC are .rpm packages.

If I remember correctly, the time applet and workspace numbers applet were smaller.

onlyreportingissues commented 1 month ago

Time applet & workspace numbers applet got the correct sizes again after the recent update.

aschiavon91 commented 1 month ago

Same issue here, and after some searching, I found that setting XCURSOR_SIZE env, to some small value, before running the app with issue, the cursor renders in the correct size. ex: XCURSOR_SIZE=12 brave-browser

aschiavon91 commented 1 month ago

Also setting gtk-cursor-theme-size in the end of ~/.config/gtk-3.0/settings.ini file, seems to fix the issue.

 echo -n "gtk-cursor-theme-size=24" >> ~/.config/gtk-3.0/settings.ini
onlyreportingissues commented 1 month ago

Also setting gtk-cursor-theme-size in the end of ~/.config/gtk-3.0/settings.ini file, seems to fix the issue.

 echo -n "gtk-cursor-theme-size=24" >> ~/.config/gtk-3.0/settings.ini

Oh nice, this gave me the idea to try it also for the cursor theme and it works. You can add gtk-cursor-theme-name=Pop to the file and the gtk3 apps will choose then the right cursor theme.

Flatpak apps also show this behaviour, but the fix is simple. After editing the file at ~/.config/gtk-3.0/settings.ini, you can use Flatseal to add this path globally: xdg-config/gtk-3.0:ro. It will allow Flatpak apps to read this config file also & then use the correct values you inserted there.