x11: Don't multiply X values by the scale factor

This is fallout from a too eager change in
bdb442be21.
This commit is contained in:
Benjamin Otte 2018-06-15 07:57:45 +02:00
parent 6633d4130a
commit 7e09aa3caa

View File

@ -581,8 +581,8 @@ gdk_surface_cache_new (GdkDisplay *display)
{
cow = XCompositeGetOverlayWindow (xdisplay, xroot_window);
gdk_surface_cache_add (result, cow, 0, 0,
WidthOfScreen (GDK_X11_SCREEN (screen)->xscreen) * GDK_X11_SCREEN (screen)->surface_scale,
HeightOfScreen (GDK_X11_SCREEN (screen)->xscreen) * GDK_X11_SCREEN (screen)->surface_scale,
WidthOfScreen (GDK_X11_SCREEN (screen)->xscreen),
HeightOfScreen (GDK_X11_SCREEN (screen)->xscreen),
TRUE);
XCompositeReleaseOverlayWindow (xdisplay, xroot_window);
}