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.
This commit is contained in:
Jasper St. Pierre 2014-05-22 15:44:50 -04:00
parent c45f616fdc
commit c448650a60

View File

@ -2509,12 +2509,10 @@ handle_move_to_corner_backend (MetaDisplay *display,
{ {
MetaRectangle work_area; MetaRectangle work_area;
MetaRectangle frame_rect; MetaRectangle frame_rect;
int orig_x, orig_y;
int new_x, new_y; int new_x, new_y;
meta_window_get_work_area_all_monitors (window, &work_area); meta_window_get_work_area_all_monitors (window, &work_area);
meta_window_get_frame_rect (window, &frame_rect); meta_window_get_frame_rect (window, &frame_rect);
meta_window_get_position (window, &orig_x, &orig_y);
if (xchange) if (xchange)
{ {
@ -2524,7 +2522,7 @@ handle_move_to_corner_backend (MetaDisplay *display,
} }
else else
{ {
new_x = orig_x; new_x = frame_rect.x;
} }
if (ychange) if (ychange)
@ -2535,7 +2533,7 @@ handle_move_to_corner_backend (MetaDisplay *display,
} }
else else
{ {
new_y = orig_y; new_y = frame_rect.y;
} }
meta_window_move_frame (window, meta_window_move_frame (window,