From de97f90246e32026f9f73366cd8b3f1b34282cf5 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 26 Apr 2018 19:09:55 +1000 Subject: Fix WLR_DIRECTION enums. Having 0 as an enum value causes wlr_output_layout_adjacent_output() to never match WLR_DIRECTION_UP. --- include/wlr/types/wlr_output_layout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index ccb2cd61..a3e47e8d 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -105,9 +105,9 @@ struct wlr_output *wlr_output_layout_get_center_output( struct wlr_output_layout *layout); enum wlr_direction { - WLR_DIRECTION_UP = 0, - WLR_DIRECTION_DOWN = 1, - WLR_DIRECTION_LEFT = 2, + WLR_DIRECTION_UP = 1, + WLR_DIRECTION_DOWN = 2, + WLR_DIRECTION_LEFT = 3, WLR_DIRECTION_RIGHT = 4, }; -- cgit v1.2.3