Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Text gets blurry in popup selection with two monitors

Open dragove opened this issue 2 years ago • 5 comments

I have two monitors with different resolution and scale coefficient. which is configured with

# 4k with scale 2
monitor=DP-1,3840x2160,0x0,2
# 1080P with scale 1
monitor=eDP-1,1920x1080@144,1920x0,1

And I launched pavucontrol (a wayland-native app) in my 4k monitor, then select port, the text in popup is blurry.

blur

An interesting thing is that if I add a small scale coefficient (e.g. 1.0001) to my 1080P monitor, text will not be blurry. But if the scale coefficient is less or equal to 1, text gets blurry.

nonblur

dragove avatar Jun 04 '23 02:06 dragove

I can reproduce the bug. Another thing I noticed is that only GTK applications (e.g. evince, nemo) have the problem. The popup in Qt applications (e.g. Dolphin) is not blurry.

I can confirm that if I add a small scale coefficient (e.g. 1.0001) to the 1080P monitor, text will not be blurry.

Both menu popups and tooltip popups are affected.

nemo_blurry_menu

nemo_blurry_tooltip

My Hyprland config about monitors:

monitor = eDP-1,1920x1080,3072x648,1
monitor = DP-1,3840x2160,0x0,1.25

Hyprland Version:

Hyprland, built from branch main at commit ab5497a0c9e9269b1036a0bede42cbd0bbfd94b9 dirty (input: properly track xdg surfaces' geometry in vectorToSurfaceLocal).
Tag: v0.31.0-61-gab5497a0

flags: (if any)
debug

1024th avatar Nov 01 '23 02:11 1024th

For Fcitx5, it doesn't seem to be an Hyprland issue on my end. I tried these version combinations:

5.11 Fcitx5 has the issue regardless of Hyprland versions and 5.0.23 Fcitx5 doesn't have the issue. I worked around the issue by pinning fcitx5 version to 5.0.23 on NixOS like this

Update: Disabling "Enable fractional scale under Wayland" in the Fcitx5 Classic User Interface addons fixes the issue on 2X scale on 5.11 Fcitx5.

15cm avatar Nov 13 '23 03:11 15cm

Update: Disabling "Enable fractional scale under Wayland" in the Fcitx5 Classic User Interface addons fixes the issue on 2X scale on 5.11 Fcitx5.

This is a hyprland issue, not a fcitx5 bug: env WAYLAND_DEBUG=1 fcitx5 shows that a preferred_scale of 120 (which means a scale of 1 in this context) is sent by hyprland, even though scaling is enabled on the monitor. fcitx5_pr.log

q234rty avatar Nov 28 '23 16:11 q234rty

is this still a thing?

vaxerski avatar May 15 '24 23:05 vaxerski

Yes, it's still blurry on 0.40

Screenshot_20240517_230201

dragove avatar May 17 '24 15:05 dragove

It seems this issue has been fixed. If anyone encountered again, please leave a comment with reproduce log or open a new issue. thanks.

dragove avatar Sep 26 '24 14:09 dragove