diff options
author | Victor Kareh <[email protected]> | 2018-03-21 16:14:02 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-22 11:53:41 +0100 |
commit | 44b60b06e9283c918003dfcfcf15767a9f17859d (patch) | |
tree | df479ed9ada1e9317dad6e525c58133c6e33a9b4 /src/ui | |
parent | b9fd3c1c0a252051ba9cad18e8427511f240d5da (diff) | |
download | marco-44b60b06e9283c918003dfcfcf15767a9f17859d.tar.bz2 marco-44b60b06e9283c918003dfcfcf15767a9f17859d.tar.xz |
Use frame window to determine scale
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/frames.c | 2 |
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); |