[gtk+/gtk-3-18] x11: don't apply scaling factor twice
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-18] x11: don't apply scaling factor twice
- Date: Wed, 24 Feb 2016 17:48:49 +0000 (UTC)
commit 305568f70bd413548afbcdd2b8fac1e0759b9641
Author: William Hua <william hua canonical com>
Date: Tue Feb 2 15:33:33 2016 -0500
x11: don't apply scaling factor twice
The fallback behaviour of get_work_area () divides the
screen width and height by the window scaling factor, but
those values are already scaled down.
https://bugzilla.gnome.org/show_bug.cgi?id=761474
gdk/x11/gdkscreen-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 42d8910..b0c3cd6 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -328,8 +328,8 @@ get_work_area (GdkScreen *screen,
/* Defaults in case of error */
area->x = 0;
area->y = 0;
- area->width = gdk_screen_get_width (screen) / x11_screen->window_scale;
- area->height = gdk_screen_get_height (screen) / x11_screen->window_scale;
+ area->width = gdk_screen_get_width (screen);
+ area->height = gdk_screen_get_height (screen);
if (!gdk_x11_screen_supports_net_wm_hint (screen,
gdk_atom_intern_static_string ("_NET_WORKAREA")))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]