mako icon indicating copy to clipboard operation
mako copied to clipboard

Blurry notification/Hi-DPI

Open ewwhash opened this issue 3 years ago • 13 comments

Using mako i got very strange behaviour: all the time i receive notifications, first notification gets blurry, but reloading sway/using slurp/getting another notification and all the notifications are no longer blurry. 20211006_04h18m49s_grim 20211006_04h19m00s_grim

I'm using a Hi-DPI laptop, and of course with output eDP-1 scale 1 everything works fine.

ewwhash avatar Oct 06 '21 01:10 ewwhash

I don't know how can it help but i replaced scale to constant (2) in wayland.c and everything renders perfectly.

ewwhash avatar Oct 06 '21 13:10 ewwhash

I have the same issue. Can you share a diff, so I can at least use this as a workaround?

EDIT: I solved it. I think what the reportor means is that if the initial scale is identical to your scaling factor instead of one, the blurriness disappears. The value is found on line 565 in wayland.c.

Thanks, BrightYC

trobjo-telia avatar Oct 08 '21 06:10 trobjo-telia

@trobjo-telia I glad it helped. By the way, doesn't the cursor is blurry too? Like you are dragging mouse inside notifications and cursor inside the notification looks blurry. Seems like mako doesn't respect XCURSOR_SIZE or smth 🤔

ewwhash avatar Oct 09 '21 01:10 ewwhash

Yes, that is true, even with your "fix" the cursor is still blurry when hovering over the notification.

trbjo avatar Oct 09 '21 03:10 trbjo

Today I've got really weird behavior:

  1. restart mako
  2. notify-send a message. it works as expected (shown, hidpi)
  3. click to dismiss
  4. notify-send another message. nothing appears
  5. makoctl reload. the notification appears, but blurry.
  6. issue some more reloads. it probably will become hidpi.

The two issues (not shown and blurry) just seem to happen to me randomly. No clue what to do next.

lilydjwg avatar Nov 13 '21 14:11 lilydjwg

I've sent a pull request to address both blurry text and cursor. Could you give it a try?

lilydjwg avatar Nov 23 '21 07:11 lilydjwg

I have tested it now. You pull request fixes the issue for me!

trbjo avatar Nov 23 '21 18:11 trbjo

I have tested it too, your PR fixes this issue!

OctopusET avatar Nov 25 '21 10:11 OctopusET

Created an AUR package for Arch Linux users https://aur.archlinux.org/packages/mako-no-blur-git

okhsunrog avatar Feb 08 '22 08:02 okhsunrog

Thanks for the package @okhsunrog! Works like a charm.

raiguard avatar May 15 '22 02:05 raiguard

Will is be merged?

yavko avatar Jun 25 '22 08:06 yavko

Latest master should have this issue fixed.

emersion avatar Jun 25 '22 08:06 emersion

Latest master should have this issue fixed.

they are blurry again for some reason, and not just like sometimes but like every time now lol

yavko avatar Jul 15 '22 03:07 yavko