aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-10-31 18:06:04 -0400
committerSimon Ser <contact@emersion.fr>2020-10-31 23:15:21 +0100
commit0fdb41fe7c2efeb29206180f076b6a5a7706fdce (patch)
tree97724e1f0b140d4064c7a9bb81376f8dcbaea916 /include/wlr
parent7c6e06fd13ad3b96375da606d1483c4d19df38af (diff)
types/wlr_output_layout: use bitmask for wlr_direction
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output_layout.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index cdbc446f..51c1e4ca 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -124,10 +124,10 @@ struct wlr_output *wlr_output_layout_get_center_output(
struct wlr_output_layout *layout);
enum wlr_direction {
- WLR_DIRECTION_UP = 1,
- WLR_DIRECTION_DOWN = 2,
- WLR_DIRECTION_LEFT = 4,
- WLR_DIRECTION_RIGHT = 8,
+ WLR_DIRECTION_UP = 1 << 0,
+ WLR_DIRECTION_DOWN = 1 << 1,
+ WLR_DIRECTION_LEFT = 1 << 2,
+ WLR_DIRECTION_RIGHT = 1 << 3,
};
/**