ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.41k stars 63 forks source link

Blurry notifications with HiDPI scaling #29

Open christopher-l opened 2 years ago

christopher-l commented 2 years ago

When using HiDPI scaling, notifications are scaled by pixels and become blurry. image

In the notification center, notifications will sometimes be blurry. image

ErikReider commented 2 years ago

Hmmm... Seems to be a layershell issue. Maybe related to #27?

ErikReider commented 2 years ago

Can you check if running swaync-client -rs in the terminal fixes this? (With the latest changes ofc)

christopher-l commented 2 years ago

swaync-client -rs doesn't seem to have any effect on existing notifications, but the issue has become harder to reproduce with the latest changes. In general, notifications tend to appear correctly initially and only when viewed in the notification center first on a non-scaled monitor and then again on a scaled one, the notification sometimes renders blurry, but even this doesn't happen anymore with notify-send for me (but with other notification sources, it still does).

danyspin97 commented 2 years ago

Hi! I am using SwayNotificationCenter from master and I still have blurry notifications. However, they are not sporadically blurry like @christopher-l , but they are always blurry. I have two screens, one FHD and one 4k scaled. If I disable the first one, the notifications work fine again. Even if I reenable it later, the notifications continue to work fine.

ErikReider commented 2 years ago

@danyspin97 Could you provide a screenshot and do other GTK applications look the same?

danyspin97 commented 2 years ago

@ErikReider I would, but it started working, I don't know why :/ I will post a screenshot if and when this issue will reapper. Thanks for the support :)

danyspin97 commented 2 years ago

I have two different systems. I mostly use one, but today I went back on the other one and I got this problem again:

blurred

Other GTK wayland applications look fine. I am using GDK_BACKEND=wayland in my environment so all the GTK applications should natively run on Wayland and they aren't blurred.

I am running swaync version 0.6.1.

ErikReider commented 2 years ago

Are the widgets in the control center also blurry (clear all button, dnd switch, title text)

danyspin97 commented 2 years ago

It's the same as the reporter, the buttons in the control center are fine, but some notifications are blurry. I also have some not blurry notifications.

ErikReider commented 2 years ago

Seems like an EventBox issue I guess?...

danyspin97 commented 2 years ago

The first displayed notification is blurry; then all the following ones displayed together are not blurry. After they have been removed, the next one will still be blurry and this process repeats again.

xadhatter commented 1 year ago

I have the same experience as @danyspin97.

image

ErikReider commented 1 year ago

The first displayed notification is blurry; then all the following ones displayed together are not blurry. After they have been removed, the next one will still be blurry and this process repeats again.

Are you still experiencing this? What setup are you using? (display wise)

Sumanthbhumi commented 4 months ago

I'm having this issue, the toggle buttle looks blurry too. Using hyprland with 200dpi. @ErikReider

kode54 commented 3 months ago

Adding my findings here: This only seems to happen if I have mixed-DPI displays, or my primary display defaults to 1.0 scale and Kanshi corrects this by profile. It happens after the 2.0 scaled display is hotplugged, as happens whenever it is power cycled back on. Then SwayNC and several other apps stay scaled 1.0.

My other monitor is scale 1.0, and the primary monitor defaults to 1.0 under labwc until Kanshi applies my scaling profile to it after hotplug.