mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
window-x11: Keep flags where they're used
Just a simple code cleanup
This commit is contained in:
parent
f3f3c94831
commit
a8df208a5c
@ -501,7 +501,6 @@ static void
|
|||||||
meta_window_x11_manage (MetaWindow *window)
|
meta_window_x11_manage (MetaWindow *window)
|
||||||
{
|
{
|
||||||
MetaDisplay *display = window->display;
|
MetaDisplay *display = window->display;
|
||||||
MetaMoveResizeFlags flags;
|
|
||||||
|
|
||||||
meta_display_register_x_window (display, &window->xwindow, window);
|
meta_display_register_x_window (display, &window->xwindow, window);
|
||||||
meta_window_x11_update_shape_region (window);
|
meta_window_x11_update_shape_region (window);
|
||||||
@ -536,10 +535,10 @@ meta_window_x11_manage (MetaWindow *window)
|
|||||||
* passing TRUE for is_configure_request, ICCCM says
|
* passing TRUE for is_configure_request, ICCCM says
|
||||||
* initial map is handled same as configure request
|
* initial map is handled same as configure request
|
||||||
*/
|
*/
|
||||||
flags = META_IS_CONFIGURE_REQUEST | META_IS_MOVE_ACTION | META_IS_RESIZE_ACTION;
|
|
||||||
if (!window->override_redirect)
|
if (!window->override_redirect)
|
||||||
{
|
{
|
||||||
MetaRectangle rect;
|
MetaRectangle rect;
|
||||||
|
MetaMoveResizeFlags flags;
|
||||||
int gravity = window->size_hints.win_gravity;
|
int gravity = window->size_hints.win_gravity;
|
||||||
|
|
||||||
rect.x = window->size_hints.x;
|
rect.x = window->size_hints.x;
|
||||||
@ -547,6 +546,8 @@ meta_window_x11_manage (MetaWindow *window)
|
|||||||
rect.width = window->size_hints.width;
|
rect.width = window->size_hints.width;
|
||||||
rect.height = window->size_hints.height;
|
rect.height = window->size_hints.height;
|
||||||
|
|
||||||
|
flags = META_IS_CONFIGURE_REQUEST | META_IS_MOVE_ACTION | META_IS_RESIZE_ACTION;
|
||||||
|
|
||||||
adjust_for_gravity (window, TRUE, gravity, &rect);
|
adjust_for_gravity (window, TRUE, gravity, &rect);
|
||||||
meta_window_client_rect_to_frame_rect (window, &rect, &rect);
|
meta_window_client_rect_to_frame_rect (window, &rect, &rect);
|
||||||
meta_window_move_resize_internal (window, flags, gravity, rect);
|
meta_window_move_resize_internal (window, flags, gravity, rect);
|
||||||
|
Loading…
Reference in New Issue
Block a user