summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkscreen-x11.c
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2016-02-02 15:33:33 -0500
committerWilliam Hua <william.hua@canonical.com>2016-02-04 11:02:09 -0500
commit7b88e304c779ad23b7c2945cb42a0f8a20f9060e (patch)
treec8edf8aab5f6ee08892676a97007616e36627685 /gdk/x11/gdkscreen-x11.c
parent4a49d8d14fa8a3e037364eb231f25c2e8bce0fa5 (diff)
downloadgtk+-7b88e304c779ad23b7c2945cb42a0f8a20f9060e.tar.gz
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
Diffstat (limited to 'gdk/x11/gdkscreen-x11.c')
-rw-r--r--gdk/x11/gdkscreen-x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 44bb69ffba..abd3cae36e 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")))