mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
x11: Fix size delta calculations
This used to be a comparison between old/new width and height, but
broke long ago.
Fixes: 6e06648f
- window: Refactor all move/resize operations to be in frame rect space
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
This commit is contained in:
parent
bbd988cbc5
commit
f5cb8a73d5
@ -1317,8 +1317,8 @@ meta_window_x11_move_resize_internal (MetaWindow *window,
|
||||
|
||||
meta_frame_calc_borders (window->frame, &borders);
|
||||
|
||||
size_dx = constrained_rect.x - window->rect.width;
|
||||
size_dy = constrained_rect.y - window->rect.height;
|
||||
size_dx = constrained_rect.width - window->rect.width;
|
||||
size_dy = constrained_rect.height - window->rect.height;
|
||||
|
||||
window->rect = constrained_rect;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user