window: Remove some overcomplicated uses of meta_window_move_resize

Replace them with meta_window_move_frame, since that's all we need
to do.
This commit is contained in:
Jasper St. Pierre
2014-05-21 08:51:24 -04:00
parent 3f1b6ddc8f
commit 21991a7edb
2 changed files with 5 additions and 21 deletions

View File

@ -5328,7 +5328,6 @@ meta_window_shove_titlebar_onscreen (MetaWindow *window)
MetaRectangle frame_rect;
GList *onscreen_region;
int horiz_amount, vert_amount;
int newx, newy;
g_return_if_fail (!window->override_redirect);
@ -5360,14 +5359,7 @@ meta_window_shove_titlebar_onscreen (MetaWindow *window)
0,
-vert_amount);
newx = frame_rect.x + window->frame->child_x;
newy = frame_rect.y + window->frame->child_y;
meta_window_move_resize (window,
FALSE,
newx,
newy,
window->rect.width,
window->rect.height);
meta_window_move_frame (window, FALSE, frame_rect.x, frame_rect.y);
}
gboolean