summaryrefslogtreecommitdiffstats
path: root/twin/utils.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-03-10 20:44:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-11 10:00:48 +0900
commit7e7c3b4d5f4d2793eff2edb278da4bee29097e04 (patch)
treed6ac06b0eaff033c954b2a7fdfca5ee464e1629c /twin/utils.h
parentc70d6de201709b880e658f414712e42efd4967ec (diff)
downloadtdebase-7e7c3b4d5f4d2793eff2edb278da4bee29097e04.tar.gz
tdebase-7e7c3b4d5f4d2793eff2edb278da4bee29097e04.zip
Fix twin crash when starting with 'Switch desktop' option set. This
resolves issue #455. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'twin/utils.h')
-rw-r--r--twin/utils.h23
1 files changed, 10 insertions, 13 deletions
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