You are not logged in.

#1 2021-11-27 22:40:51

lfitzgerald
Member
Registered: 2021-07-16
Posts: 43

Mouse changes size in browser window (i3)

I use i3 and I have my dpi set to 300-ish. Besides scaling up all my UI, this also scales up my mouse pointer size, as expected. However, I noticed that even though my browsers such as chrome also get scaled up, when the mouse pointer moves over the chrome window it shrinks. When moved back over the i3 titlebar etc it goes back to its normal, large size. I get the same thing with firefox, but not with most other programs such as text editors, terminals, ides and even qutebrowser. I'm guessing both chrome and firefox do some funny business with the dpi, but does anyone know what exactly is going on?

Last edited by lfitzgerald (2021-11-27 22:41:06)

Offline

#2 2021-11-28 07:54:49

seth
Member
Registered: 2012-09-03
Posts: 26,666

Re: Mouse changes size in browser window (i3)

I rather suspect they may set a custom cursor shape and pick the wrong theme/size.
What if you enforce a size in xrdb, https://wiki.archlinux.org/title/Cursor … _resources ?

Offline

#3 2021-11-29 01:28:40

lfitzgerald
Member
Registered: 2021-07-16
Posts: 43

Re: Mouse changes size in browser window (i3)

Possibly. But I tried both Xcursor.size: 256 and 8, and didn't seem to make a difference. I tried xrdb ~/.Xresources as well as restarting i3.

Offline

#4 2021-11-29 09:26:07

seth
Member
Registered: 2012-09-03
Posts: 26,666

Re: Mouse changes size in browser window (i3)

https://askubuntu.com/questions/1075872 … untu-18-04 suggests to

export XCURSOR_PATH=$RUNTIME/usr/share/icons

- is this btw. the repo version or a snap/flatpak browser installation?

Offline

#5 2021-11-29 20:33:29

lfitzgerald
Member
Registered: 2021-07-16
Posts: 43

Re: Mouse changes size in browser window (i3)

Hmm, I tried that, but it doesn't seem to have an effect.

I'm using ungoogle chromium from https://download.opensuse.org/repositor … d_chromium -- but it happens with other bloat browsers too. For example firefox developer edition also has tiny cursor. Qutebrowser doesn't - probably because it uses a simpler UI toolkit.

Offline

#6 2021-11-29 20:41:49

seth
Member
Registered: 2012-09-03
Posts: 26,666

Re: Mouse changes size in browser window (i3)

What if you force the scale factor, https://wiki.archlinux.org/title/HiDPI# … gle_Chrome ?

Offline

#7 2021-11-29 20:47:23

lfitzgerald
Member
Registered: 2021-07-16
Posts: 43

Re: Mouse changes size in browser window (i3)

Strangely, doesn't seem to have effect. I just run

$ chromium --force-device-scale-factor=8

right? I was expecting at least the UI to change, but it looks exactly the same.

Edit: Oh wait, you have to close *all* chrome windows for it to work. Once I do that, the UI (ie tab title bar) gets scaled up to a huge size, but the mouse stays the same.

Last edited by lfitzgerald (2021-11-29 20:48:45)

Offline

#8 2021-11-29 20:59:12

seth
Member
Registered: 2012-09-03
Posts: 26,666

Re: Mouse changes size in browser window (i3)

You also have to do that (actually make sure all chromium processes have terminated) for the environment variable and xrdb to apply.
Reg. the environment: you did export it to the shell that started chromium, right? Because if you export that in some interactive terminal and then run chromium from the graphical shell, it won't do anything for sure.

Offline

Board footer

Powered by FluxBB