summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r--src/ui/frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 9e67bfc4..80ee353c 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1028,7 +1028,7 @@ meta_frames_move_resize_frame (MetaFrames *frames,
old_width = gdk_window_get_width (frame->window);
old_height = gdk_window_get_height (frame->window);
- scale = gdk_window_get_scale_factor (gdk_get_default_root_window ());
+ scale = gdk_window_get_scale_factor (frame->window);
gdk_window_move_resize (frame->window, x / scale, y / scale, width / scale, height / scale);