Skip to content

Commit

Permalink
x11: don't apply scaling factor twice
Browse files Browse the repository at this point in the history
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
  • Loading branch information
attente committed Feb 4, 2016
1 parent 4a49d8d commit 7b88e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdk/x11/gdkscreen-x11.c
Expand Up @@ -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")))
Expand Down

0 comments on commit 7b88e30

Please sign in to comment.