mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 06:04:10 +00: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_move_frame = FALSE;
|
||||||
gboolean need_resize_client = FALSE;
|
gboolean need_resize_client = FALSE;
|
||||||
gboolean need_resize_frame = FALSE;
|
gboolean need_resize_frame = FALSE;
|
||||||
int frame_size_dx;
|
|
||||||
int frame_size_dy;
|
|
||||||
int size_dx;
|
int size_dx;
|
||||||
int size_dy;
|
int size_dy;
|
||||||
gboolean frame_shape_changed = FALSE;
|
gboolean frame_shape_changed = FALSE;
|
||||||
@ -4681,6 +4679,7 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
|
|
||||||
if (window->frame)
|
if (window->frame)
|
||||||
{
|
{
|
||||||
|
int frame_size_dx, frame_size_dy;
|
||||||
int new_w, new_h;
|
int new_w, new_h;
|
||||||
|
|
||||||
new_w = window->rect.width + borders.total.left + borders.total.right;
|
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.width,
|
||||||
window->frame->rect.height);
|
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
|
/* For nice effect, when growing the window we want to move/resize
|
||||||
* the frame first, when shrinking the window we want to move/resize
|
* the frame first, when shrinking the window we want to move/resize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user