mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
wayland: Use the variables we already have
This commit is contained in:
parent
90d7737fc1
commit
9316256e10
@ -227,8 +227,8 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
|
|||||||
if (new_buffer_x != window->buffer_rect.x || new_buffer_y != window->buffer_rect.y)
|
if (new_buffer_x != window->buffer_rect.x || new_buffer_y != window->buffer_rect.y)
|
||||||
{
|
{
|
||||||
*result |= META_MOVE_RESIZE_RESULT_MOVED;
|
*result |= META_MOVE_RESIZE_RESULT_MOVED;
|
||||||
window->buffer_rect.x = new_x - window->custom_frame_extents.left;
|
window->buffer_rect.x = new_buffer_x;
|
||||||
window->buffer_rect.y = new_y - window->custom_frame_extents.top;
|
window->buffer_rect.y = new_buffer_y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user