mirror of
https://github.com/brl/mutter.git
synced 2025-07-02 17:21:57 +00:00
window: Add proper interpretation of dx/dy
dx/dy should be against the regular window's rect, and need to be ignored when we're resizing. Instead, we use gravity to anchor the window's new rectangle when resizing.
This commit is contained in:
@ -131,11 +131,6 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
|
||||
* it can be for maximized or fullscreen.
|
||||
*/
|
||||
|
||||
/* First, save where we would like the client to be. This is used by the next
|
||||
* attach to determine if the client is really moving/resizing or not.
|
||||
*/
|
||||
window->expected_rect = constrained_rect;
|
||||
|
||||
if (flags & META_IS_WAYLAND_RESIZE)
|
||||
{
|
||||
/* This is a call to wl_surface_commit(), ignore the constrained_rect and
|
||||
|
Reference in New Issue
Block a user