meta_window_move_resize_internal: handle border size changes
Initial placement during meta_window_constrain() can result in changes to the borders, so we need to recompute our border sizes after constraining. This fixes incorrect window borders on initially maximized windows. https://bugzilla.gnome.org/show_bug.cgi?id=720417
This commit is contained in:
parent
7009d1e470
commit
cb33e1942a
@ -5245,6 +5245,11 @@ meta_window_move_resize_internal (MetaWindow *window,
|
||||
* the interaction with frames and the synthetic configure notifies.
|
||||
*/
|
||||
|
||||
/* meta_window_constrain() might have maximized the window after placement,
|
||||
* changing the borders.
|
||||
*/
|
||||
meta_frame_calc_borders (window->frame, &borders);
|
||||
|
||||
root_x_nw = new_rect.x;
|
||||
root_y_nw = new_rect.y;
|
||||
w = new_rect.width;
|
||||
|
Loading…
Reference in New Issue
Block a user