x11: Avoid meta_window_move_resize_internal()
We are using no placing flags, so this is essentially the same as meta_window_move_resize(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3972>
This commit is contained in:
parent
92cbefd863
commit
d7fdf6d7d3
@ -622,10 +622,7 @@ meta_window_apply_session_info (MetaWindow *window,
|
||||
|
||||
adjust_for_gravity (window, FALSE, gravity, &rect);
|
||||
meta_window_client_rect_to_frame_rect (window, &rect, &rect);
|
||||
meta_window_move_resize_internal (window,
|
||||
flags,
|
||||
META_PLACE_FLAG_NONE,
|
||||
rect);
|
||||
meta_window_move_resize (window, flags, rect);
|
||||
}
|
||||
}
|
||||
|
||||
@ -705,10 +702,7 @@ meta_window_x11_initialize_state (MetaWindow *window)
|
||||
|
||||
adjust_for_gravity (window, TRUE, gravity, &rect);
|
||||
meta_window_client_rect_to_frame_rect (window, &rect, &rect);
|
||||
meta_window_move_resize_internal (window,
|
||||
flags,
|
||||
META_PLACE_FLAG_NONE,
|
||||
rect);
|
||||
meta_window_move_resize (window, flags, rect);
|
||||
}
|
||||
|
||||
meta_window_x11_update_shape_region (window);
|
||||
@ -2987,7 +2981,7 @@ meta_window_move_resize_request (MetaWindow *window,
|
||||
* (e.g. hitting a dropdown triangle in a fileselector to show more
|
||||
* options, which makes the window bigger). Thus we do not set
|
||||
* META_MOVE_RESIZE_USER_ACTION in flags to the
|
||||
* meta_window_move_resize_internal() call.
|
||||
* meta_window_move_resize() call.
|
||||
*/
|
||||
flags = META_MOVE_RESIZE_CONFIGURE_REQUEST;
|
||||
if (value_mask & (CWX | CWY))
|
||||
@ -3035,10 +3029,7 @@ meta_window_move_resize_request (MetaWindow *window,
|
||||
|
||||
adjust_for_gravity (window, TRUE, gravity, &rect);
|
||||
meta_window_client_rect_to_frame_rect (window, &rect, &rect);
|
||||
meta_window_move_resize_internal (window,
|
||||
flags,
|
||||
META_PLACE_FLAG_NONE,
|
||||
rect);
|
||||
meta_window_move_resize (window, flags, rect);
|
||||
}
|
||||
}
|
||||
|
||||
@ -5006,10 +4997,9 @@ meta_window_x11_configure (MetaWindow *window)
|
||||
META_MOVE_RESIZE_RESIZE_ACTION |
|
||||
META_MOVE_RESIZE_CONSTRAIN);
|
||||
|
||||
meta_window_move_resize_internal (window,
|
||||
flags,
|
||||
META_PLACE_FLAG_NONE,
|
||||
new_rect);
|
||||
meta_window_move_resize (window,
|
||||
flags,
|
||||
new_rect);
|
||||
}
|
||||
|
||||
if (meta_window_config_get_is_fullscreen (window_config))
|
||||
|
Loading…
x
Reference in New Issue
Block a user