diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-10-31 18:06:45 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-10-31 23:15:21 +0100 |
commit | 368d0146fbda4281b67a65fea3e6eb148655ef8f (patch) | |
tree | 23f6be42bce575f1d757128317927c97d87d170d | |
parent | 0fdb41fe7c2efeb29206180f076b6a5a7706fdce (diff) |
util/edges: use bitmask for wlr_edges
-rw-r--r-- | include/wlr/util/edges.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/util/edges.h b/include/wlr/util/edges.h index bf1eb1e7..90a1167a 100644 --- a/include/wlr/util/edges.h +++ b/include/wlr/util/edges.h @@ -19,10 +19,10 @@ enum wlr_edges { WLR_EDGE_NONE = 0, - WLR_EDGE_TOP = 1, - WLR_EDGE_BOTTOM = 2, - WLR_EDGE_LEFT = 4, - WLR_EDGE_RIGHT = 8, + WLR_EDGE_TOP = 1 << 0, + WLR_EDGE_BOTTOM = 1 << 1, + WLR_EDGE_LEFT = 1 << 2, + WLR_EDGE_RIGHT = 1 << 3, }; #endif |