From 0fdb41fe7c2efeb29206180f076b6a5a7706fdce Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sat, 31 Oct 2020 18:06:04 -0400 Subject: types/wlr_output_layout: use bitmask for wlr_direction --- include/wlr/types/wlr_output_layout.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/wlr') 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, }; /** -- cgit v1.2.3