Open SpookedByRoaches opened 1 month ago
This similarly happens if I power off my monitors and then power them back on (manually, by pressing the buttons). I also get thrown onto a new blank workspace, though that may be a different issue.
New instances of Firefox are fine. Other apps seem fine.
I'm using fractional scaling (1.5) but the issue reproduces with 2.0 as well.
I was hopeful that I could revert the commit mentioned above or maybe even try to fix it myself, but #6268 is quite the large change so I gave up on that idea.
I don't know if it's related, but I found https://www.reddit.com/r/swaywm/comments/m4dfku/firefox_becomes_blurry_after_waking_up_from_sleep/ which points to a wlroots issue from 2020: https://github.com/swaywm/wlroots/issues/2466 -- my understanding is that Hypr recently moved away from wlroots, so perhaps whatever fix was needed there could be helpful here. But it could also be a red herring.
As a silly little workaround for now, I've pinned about:profiles
in Firefox and click the 'Restart normally...' button when necessary. It seems to put the window back where it was, how it was, but with the crisper fonts again.
I've discovered that this also happens if I switch my monitors to a different computer using a KVM. I suppose this isn't terribly surprising, given the other scenarios it also happens in, but thought I'd mention it in case it helps narrow anything down.
Having tested it some more, I think this has something to do with how quickly the monitor wakes up. I have two monitors: an Acer that is dog slow to wake up and a Dell that is, comparatively, snappy. If Firefox is on the Dell monitor when dpms is toggled, it's fine; if it's on the Acer, this bug occurs. I swapped the Acer for another Dell and now the problem happens a lot less frequently (but does still happen rarely, I think). My guess is it's some kind of timing issue / race condition somewhere.
Regression?
Yes
System Info and Version
System/Version info
```shDescription
OK so this is a weird issue. When scaling the monitor, then suspending the screen using
hyprctl dispatch dpms suspend
, GTK applications go to lowDPI mode. This happens to Firefox and GnuCash. I don't know any other applications that use GTK but these two have this problem consistently. If the app is in lowdpi mode then you bring the screen back to the default scale of 1, it's fine again.The commit that created that issue is
6967a31450441fc5605c05db6f65505dace4b263
How to reproduce
hyprctl dispatch dpms suspend; sleep 30; hyprctl dispatch dpms on
to do it quicklyCrash reports, logs, images, videos
No response