From c448650a60e4f91a6ee132837049480b27e591f8 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 22 May 2014 15:44:50 -0400 Subject: [PATCH] keybindings: Correct move_to_corner_backend meta_window_get_position() returns the client rect position, which we then pass to meta_window_move_frame. Just use the existing frame rect coordinates. --- src/core/keybindings.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 1772c253b..2322d2844 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -2509,12 +2509,10 @@ handle_move_to_corner_backend (MetaDisplay *display, { MetaRectangle work_area; MetaRectangle frame_rect; - int orig_x, orig_y; int new_x, new_y; meta_window_get_work_area_all_monitors (window, &work_area); meta_window_get_frame_rect (window, &frame_rect); - meta_window_get_position (window, &orig_x, &orig_y); if (xchange) { @@ -2524,7 +2522,7 @@ handle_move_to_corner_backend (MetaDisplay *display, } else { - new_x = orig_x; + new_x = frame_rect.x; } if (ychange) @@ -2535,7 +2533,7 @@ handle_move_to_corner_backend (MetaDisplay *display, } else { - new_y = orig_y; + new_y = frame_rect.y; } meta_window_move_frame (window,