From 305e627c013c23431f7503542f00174623f51288 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Mon, 2 Jan 2023 23:52:36 -0800 Subject: [PATCH] rootless: Use RL_GRAVITY_NORTH_WEST for min/max/zoom resizing If none of the four corners is fixed, we can use RL_GRAVITY_NORTH_WEST weighting for the operation to let the implementation presetve the window bits for us. Signed-off-by: Jeremy Huddleston Sequoia --- miext/rootless/rootlessWindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c index 5e371e0d1..d84e27358 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -845,7 +845,7 @@ ResizeWeighting(int oldX1, int oldY1, int oldX2, int oldY2, int oldBW, else if (newX2 == oldX2 && newY1 == oldY1) return RL_GRAVITY_NORTH_EAST; else - return RL_GRAVITY_NONE; + return RL_GRAVITY_NORTH_WEST; } /*