mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
c45f616fdc
commit
c448650a60
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user