autohidpi
autohidpi copied to clipboard
Some websites report different screen dimensions
Some websites (such as https://bbs.archlinux.org/) will report different screen dimensions. For example, I have a 4k monitor (width=3840 height=2160 left=0 top=0) When visiting https://bbs.archlinux.org/ it reports the screen dimensions as width=4224 height=2376 left=0 top=0. As soon as I click into the widget to adjust the scaling factor, the screen dimensions revert to the correct values, which means I cannot adjust the scaling factor when visiting the website.
When opening a new tab and typing in a URL to visit a website also causes the DPI to momentarily switch to unscaled. I was able to verify that it's the same problem where it gets incorrect screen dimensions. (though the width is somewhere on the order of 3080. It happens too quickly to get an exact number)
@akb825 Make sure your zoom level is set to the default value (ctrl+0
). Does the problem persist?
It looks like that was the problem. I must have accidentally adjusted the zoom to that page at some point.
I was also able to fix the issue where it flashes to a different DPI scaling when loading the first page in a new tab by pressing ctrl+0 right after it starts loading the page. Not sure how that one got messed up...
While the main annoyance is solved for me, it is a bit of a problem if applying zoom will cause the DPI scaling to reset.