summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-27 12:56:19 +0100
committerZenWalker <[email protected]>2019-03-28 13:58:49 +0100
commit83a915dc851f7d3385e0d38f57cc249e038dcd1d (patch)
tree29883b0cecffbc1ffe94fc272669119ef164763a /src/core/window.c
parent6f57d80bac06c6654f02652bcde562783a62d97f (diff)
downloadmarco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.bz2
marco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.xz
Improve performance by removing unused assignments
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/window.c b/src/core/window.c
index d108a0e8..01f1a6cb 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3475,8 +3475,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 is_configure_request;
@@ -3581,7 +3579,7 @@ meta_window_move_resize_internal (MetaWindow *window,
if (have_window_frame)
{
- int new_w, new_h;
+ int frame_size_dx, frame_size_dy, new_w, new_h;
new_w = window->rect.width + fgeom.left_width + fgeom.right_width;
@@ -3603,11 +3601,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