summaryrefslogtreecommitdiff
path: root/src/ui/tile-preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tile-preview.c')
-rw-r--r--src/ui/tile-preview.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c
index d99529ff..f98713b4 100644
--- a/src/ui/tile-preview.c
+++ b/src/ui/tile-preview.c
@@ -175,6 +175,13 @@ meta_tile_preview_show (MetaTilePreview *preview,
{
GdkWindow *window;
GdkRectangle old_rect;
+ gint scale;
+
+ scale = gtk_widget_get_scale_factor (preview->preview_window);
+ tile_rect->x /= scale;
+ tile_rect->y /= scale;
+ tile_rect->width /= scale;
+ tile_rect->height /= scale;
if (gtk_widget_get_visible (preview->preview_window)
&& preview->tile_rect.x == tile_rect->x