After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782011 - osd slightly misaligned
osd slightly misaligned
Status: RESOLVED DUPLICATE of bug 772287
Product: gnome-shell
Classification: Core
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-01 13:57 UTC by groucho
Modified: 2018-07-11 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Scaled text - Xorg (30.80 KB, image/png)
2017-05-01 13:57 UTC, groucho
  Details
Blurry text - Wayland (20.89 KB, image/png)
2017-05-01 14:03 UTC, groucho
  Details
osdWindow: fix blurriness at certain resolutions (1.01 KB, patch)
2017-05-26 16:19 UTC, slatchurie
committed Details | Review
osdWindow: change the centering calculation (1.80 KB, patch)
2017-05-30 16:45 UTC, slatchurie
none Details | Review
before and after patch 352655 (25.68 KB, image/jpeg)
2017-08-19 19:05 UTC, slatchurie
  Details
osdWindow: change the centering calculation (1.87 KB, patch)
2018-06-05 11:51 UTC, slatchurie
none Details | Review

Description groucho 2017-05-01 13:57:22 UTC
Created attachment 350800 [details]
Scaled text - Xorg

I have two issues that seem to be linked :
- the text seems scaled (Xorg) or blurry (Wayland)
- the osd box moves left and right by 1 pixel when increasing or decreasing the volume or brightness

The issues only appear on a 1680x1050 screen.
The osd is perfect on 1920x1080 and 1280x800 screens.
Comment 1 groucho 2017-05-01 14:03:34 UTC
Created attachment 350801 [details]
Blurry text - Wayland
Comment 2 Florian Müllner 2017-05-01 14:12:50 UTC
What version of gnome-shell are you using? Bug 772723 and particularly bug 772287 sound related - both fixes are included in 3.22.2.
Comment 3 groucho 2017-05-01 14:18:51 UTC
Gnome 3.22.2 on Fedora 25

bug 772287 is exactly the second bug I described.
Comment 4 Florian Müllner 2017-05-01 14:24:18 UTC
(In reply to groucho from comment #3)
> Gnome 3.22.2 on Fedora 25
> 
> bug 772287 is exactly the second bug I described.

Except that the fix didn't fix the issue for you :-(
Comment 5 groucho 2017-05-01 16:07:51 UTC
(In reply to Florian Müllner from comment #4)
> (In reply to groucho from comment #3)
> > Gnome 3.22.2 on Fedora 25
> > 
> > bug 772287 is exactly the second bug I described.
> 
> Except that the fix didn't fix the issue for you :-(

The fix is just a change from Math.floor to Math.ceil.
Maybe I am wrong, but to me it looks like it just moves the problem.

Having said that, those are not a huge bugs, and 1680x1050 is a rare resolution these days. ;-)
Comment 6 groucho 2017-05-07 16:03:24 UTC
I did some more testing.
There is no jitter on a 1080p screen set to 1680x1050 on a desktop PC.

When plugged to my laptop and set to 1680x1050, the jitter is there.

The desktop PC is running ubuntu gnome 17.04 (gnome 3.24) and has an nvidia card.
The laptop has an Intel gpu, and gnome 3.22.2, but I have also tried gnome 3.24 (live images of ubuntu 17.04 and fedora 26 alpha).
Comment 7 slatchurie 2017-05-26 16:19:56 UTC
Created attachment 352655 [details] [review]
osdWindow: fix blurriness at certain resolutions

Here is a patch that fixes the blurriness.

I think Bug 772287 should be reopened.
I'll take a closer look, but I think the problem comes from the level bar.
It's width is the white part, which is calculated from the resized OSD, but when it is big enough (around 50%) it also resizes the original OSD from which the resized dimensions are calculated.
Comment 8 slatchurie 2017-05-30 16:45:02 UTC
Created attachment 352891 [details] [review]
osdWindow: change the centering calculation
Comment 9 slatchurie 2017-08-19 19:05:29 UTC
Created attachment 357988 [details]
before and after patch 352655

I hope it isn't a big no-no, but I'm bumping this for a review.

At least for the first patch (before/after image attached).
Comment 10 Florian Müllner 2018-05-08 19:26:13 UTC
Comment on attachment 352655 [details] [review]
osdWindow: fix blurriness at certain resolutions

Sorry this feel through the cracks - the first patch is obviously correct, so pushing.
Comment 11 Daniel van Vugt 2018-05-09 08:24:36 UTC
Should we move attachment 352891 [details] [review] to bug 772287, and then can close this one?
Comment 12 slatchurie 2018-06-05 11:51:07 UTC
Created attachment 372553 [details] [review]
osdWindow: change the centering calculation

Fixing some extra spaces.

Actually, the issue comes from the fact that clutter isn't centering the resized osd.
The current solution is trying to cancel this centering and calculating a new one. Which is introducing errors. Also this cancellation would have to be synced with the centering calculation from clutter.

The fix I am proposing is taking into account the correct size from the get-go. It is more robust, but it may be still a bit hack-ish (I don't know clutter very much, and I am not sure if it is supposed to center actors before or after they are resized).
Comment 13 Daniel van Vugt 2018-06-06 01:29:35 UTC
Your patch correctly refers to bug 772287, but is attached to the wrong bug here :)
Comment 14 slatchurie 2018-06-06 11:06:57 UTC
Yes, I didn't know where to put it.
I have attached the patch to bug 772287.

I guess this one can be closed?
Comment 15 Daniel van Vugt 2018-06-07 02:01:30 UTC
Yeah, see comment 11.
Comment 16 Florian Müllner 2018-07-11 11:10:46 UTC

*** This bug has been marked as a duplicate of bug 772287 ***