Skip to content

Commit

Permalink
Use frame window to determine scale
Browse files Browse the repository at this point in the history
  • Loading branch information
vkareh authored and raveit65 committed Mar 22, 2018
1 parent f6e3326 commit 4d8f163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/frames.c
Expand Up @@ -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);

Expand Down

0 comments on commit 4d8f163

Please sign in to comment.