From 18312d9ccd6201cac44e44a0d6c96f46fc153e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silv=C3=A8re=20Latchuri=C3=A9?= Date: Fri, 26 May 2017 17:46:35 +0200 Subject: [PATCH] osdWindow: Fix blurriness at certain resolutions The y position wasn't rounded, leading to some blurriness at vertical resolutions that aren't a multiple of 4 (e.g. 1050). https://bugzilla.gnome.org/show_bug.cgi?id=782011 --- js/ui/osdWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index f27f48965..a73912413 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -204,7 +204,7 @@ var OsdWindow = new Lang.Class({ let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor; this._icon.icon_size = popupSize / (2 * scaleFactor); - this._box.translation_y = monitor.height / 4; + this._box.translation_y = Math.round(monitor.height / 4); this._boxConstraint.minSize = popupSize; } });