diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-26 19:09:55 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-26 19:09:55 +1000 |
commit | de97f90246e32026f9f73366cd8b3f1b34282cf5 (patch) | |
tree | 55bdeb75c5b3dbdfcc59e0c7d7a4439866eedd4e /include | |
parent | 31857c9ed40a6bf34273b0459d2aa604642d1807 (diff) |
Fix WLR_DIRECTION enums.
Having 0 as an enum value causes wlr_output_layout_adjacent_output() to
never match WLR_DIRECTION_UP.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output_layout.h | 6 |
1 files changed, 3 insertions, 3 deletions
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, }; |