summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transparency.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transparency.h b/src/transparency.h
index b69a16300..eb19d6938 100644
--- a/src/transparency.h
+++ b/src/transparency.h
@@ -66,7 +66,7 @@ static inline void ResetRestoreAllTransparency()
/* if none of the non-locked options are set */
if ((_transparency_opt & ~_transparency_lock) == 0) {
/* set all non-locked options */
- _transparency_opt |= ~_transparency_lock;
+ _transparency_opt |= GB(~_transparency_lock, 0, TO_END);
} else {
/* clear all non-locked options */
_transparency_opt &= _transparency_lock;