mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
window: Remove setting of an unused variable
Well, technically it's used, but only in one block, so let's just make it scoped to that block. https://bugzilla.gnome.org/show_bug.cgi?id=674876
This commit is contained in:
parent
a24c512caa
commit
a78fec7951
@ -4579,8 +4579,6 @@ meta_window_move_resize_internal (MetaWindow *window,
|
||||
gboolean need_move_frame = FALSE;
|
||||
gboolean need_resize_client = FALSE;
|
||||
gboolean need_resize_frame = FALSE;
|
||||
int frame_size_dx;
|
||||
int frame_size_dy;
|
||||
int size_dx;
|
||||
int size_dy;
|
||||
gboolean frame_shape_changed = FALSE;
|
||||
@ -4681,6 +4679,7 @@ meta_window_move_resize_internal (MetaWindow *window,
|
||||
|
||||
if (window->frame)
|
||||
{
|
||||
int frame_size_dx, frame_size_dy;
|
||||
int new_w, new_h;
|
||||
|
||||
new_w = window->rect.width + borders.total.left + borders.total.right;
|
||||
@ -4703,11 +4702,6 @@ meta_window_move_resize_internal (MetaWindow *window,
|
||||
window->frame->rect.width,
|
||||
window->frame->rect.height);
|
||||
}
|
||||
else
|
||||
{
|
||||
frame_size_dx = 0;
|
||||
frame_size_dy = 0;
|
||||
}
|
||||
|
||||
/* For nice effect, when growing the window we want to move/resize
|
||||
* the frame first, when shrinking the window we want to move/resize
|
||||
|
Loading…
Reference in New Issue
Block a user