From 7e7c3b4d5f4d2793eff2edb278da4bee29097e04 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 10 Mar 2024 20:44:44 +0900 Subject: Fix twin crash when starting with 'Switch desktop' option set. This resolves issue #455. Signed-off-by: Michele Calgaro --- twin/utils.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'twin/utils.h') diff --git a/twin/utils.h b/twin/utils.h index 36e9879a5..da2f9c2e3 100644 --- a/twin/utils.h +++ b/twin/utils.h @@ -110,19 +110,16 @@ enum ShadeMode enum ActiveBorder { - ActiveNone = 0, - - ActiveLeft = 1, - ActiveRight = 2, - ActiveTop = 4, - ActiveBottom = 8, - - ActiveTopLeft = ActiveTop | ActiveLeft, - ActiveTopRight = ActiveTop | ActiveRight, - ActiveBottomLeft = ActiveBottom | ActiveLeft, - ActiveBottomRight = ActiveBottom | ActiveRight, - - ACTIVE_BORDER_COUNT + ActiveTop = 0, + ActiveTopRight, + ActiveRight, + ActiveBottomRight, + ActiveBottom, + ActiveBottomLeft, + ActiveLeft, + ActiveTopLeft, + ACTIVE_BORDER_COUNT, + ActiveNone }; enum ActiveMaximizingMode -- cgit v1.2.1