mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
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
This commit is contained in:
parent
1dbf6b096b
commit
8307d9c4de
@ -1267,7 +1267,6 @@ meta_window_edge_resistance_for_resize (MetaWindow *window,
|
|||||||
{
|
{
|
||||||
MetaRectangle old_outer, new_outer;
|
MetaRectangle old_outer, new_outer;
|
||||||
int proposed_outer_width, proposed_outer_height;
|
int proposed_outer_width, proposed_outer_height;
|
||||||
gboolean is_resize;
|
|
||||||
|
|
||||||
meta_window_get_frame_rect (window, &old_outer);
|
meta_window_get_frame_rect (window, &old_outer);
|
||||||
proposed_outer_width = *new_width;
|
proposed_outer_width = *new_width;
|
||||||
@ -1279,7 +1278,6 @@ meta_window_edge_resistance_for_resize (MetaWindow *window,
|
|||||||
proposed_outer_height);
|
proposed_outer_height);
|
||||||
|
|
||||||
window->display->grab_last_user_action_was_snap = snap;
|
window->display->grab_last_user_action_was_snap = snap;
|
||||||
is_resize = TRUE;
|
|
||||||
if (apply_edge_resistance_to_each_side (window->display,
|
if (apply_edge_resistance_to_each_side (window->display,
|
||||||
window,
|
window,
|
||||||
&old_outer,
|
&old_outer,
|
||||||
@ -1287,7 +1285,7 @@ meta_window_edge_resistance_for_resize (MetaWindow *window,
|
|||||||
timeout_func,
|
timeout_func,
|
||||||
snap,
|
snap,
|
||||||
is_keyboard_op,
|
is_keyboard_op,
|
||||||
is_resize))
|
TRUE))
|
||||||
{
|
{
|
||||||
*new_width = new_outer.width;
|
*new_width = new_outer.width;
|
||||||
*new_height = new_outer.height;
|
*new_height = new_outer.height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user