Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Low resolution of notifications #430

Open
ghost opened this issue Jun 20, 2022 · 7 comments
Open

[bug] Low resolution of notifications #430

ghost opened this issue Jun 20, 2022 · 7 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2022

  • What is the issue?

When spawning the first notification it has a very bad resolution.
After spawning second one, it fixes itself for some unknown reason.

  • How to replicate?

Use sway, mako v1.6 and try spawning notifications using notify-send.

  • How it supposed to work?

It supposed to have good resolution as it has after temporary fixing when spawning second notification.

My personal guess is that it has some problems with detecting screen resolution. When I also put cursor over it, the cursor becomes 3 times bigger until I move it away.
(no screenshot available yet, if required i will try to post it)

@emersion
Copy link
Owner

Can you reproduce with the latest commit?

@ghost
Copy link
Author

ghost commented Jun 20, 2022

No, it is definitely not about AppArmor. I will disable AppArmor and test, if it would change I will inform you.

@emersion
Copy link
Owner

I said nothing about AppArmor…

@ghost
Copy link
Author

ghost commented Jun 20, 2022

Can you reproduce with the latest commit?

What was the latest commit?

@fluix-dev
Copy link
Contributor

What was the latest commit?

By "Can you reproduce with the latest commit?" they just mean can you reproduce with the latest source code version as opposed to the release (which can be quite old). Nothing specific about the last commit :)

@diegov
Copy link

diegov commented Jan 31, 2023

I ran into this today. It starts with the second notification, the first one renders at full resolution.

Here's an example:

$ killall mako
$ notify-send -a Notifications -c What Hello

At this point I get a full resolution notification. If I run the same notify-send command again, I get a blurry notification.

The most interesting thing, if I capture the blurry notification with grimshot, it actually shows the full resolution. After grimshot has exited, the notification remains in full resolution.

Also, the grouped notifications always show the correct resolution, they are never blurry.

I'm using the following config:

padding=4
margin=3
default-timeout=30000
border-radius=4
group-by=app-name,summary,category
anchor=top-right
font=Recursive Mn Lnr St Med 9
background-color=#25252FF5
progress-color=over #6F6F84F0
border-color=#202039E9
border-size=2
icons=1
format=<span foreground="#bcbcca">%a</span>\n%s\n%b

I tried removing the custom format and setting markup=0 in mako's config, but I still see the same problem. First notification is fine, second one is blurry.

This is on a 4k monitor, under swaywm, with output "*" scale 2.

The packages:

ii  mako-notifier  1.6-2        amd64        lightweight notification daemon for Wayland compositors
ii  sway           1.7-1        amd64        i3-compatible Wayland compositor

@tyalie
Copy link

tyalie commented Jul 12, 2023

Can confirm that I'm hitting upon the same issue. It's a bit unpredictable when it will render blurry and when not, but it's definitely blurry for the majority of the time.

What I observed thoo, is that if it is not blurry, it will pop-up blurry but then change almost immediately to being very sharp. It's easy to observe, as it actually triggers a slight layout change as the line spacing seemingly gets smaller just that tiny amount.

Calling slurp reliably triggers a redraw (???) / relayout of the notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants