[mutter/wip/fmuellner/contraint-tiling: 9/14] edge-resistance: Remove useless variable



commit db5795a7cd9622dd778e3067a2c1c6f83d66b81c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jun 13 18:37:50 2017 -0300

    edge-resistance: Remove useless variable
    
    There is a variable in meta_window_edge_resistance_for_resize
    that isn't really helpful: it just assumes TRUE, and is passed
    to apply_edge_resistance_to_each_side.
    
    This patch removes that useless variable and simply pass TRUE
    instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645153

 src/core/edge-resistance.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c
index 204165a..d3636e0 100644
--- a/src/core/edge-resistance.c
+++ b/src/core/edge-resistance.c
@@ -1267,7 +1267,6 @@ meta_window_edge_resistance_for_resize (MetaWindow  *window,
 {
   MetaRectangle old_outer, new_outer;
   int proposed_outer_width, proposed_outer_height;
-  gboolean is_resize;
 
   meta_window_get_frame_rect (window, &old_outer);
   proposed_outer_width  = *new_width;
@@ -1279,7 +1278,6 @@ meta_window_edge_resistance_for_resize (MetaWindow  *window,
                                       proposed_outer_height);
 
   window->display->grab_last_user_action_was_snap = snap;
-  is_resize = TRUE;
   if (apply_edge_resistance_to_each_side (window->display,
                                           window,
                                           &old_outer,
@@ -1287,7 +1285,7 @@ meta_window_edge_resistance_for_resize (MetaWindow  *window,
                                           timeout_func,
                                           snap,
                                           is_keyboard_op,
-                                          is_resize))
+                                          TRUE))
     {
       *new_width = new_outer.width;
       *new_height = new_outer.height;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]