Fix WLR_DIRECTION enums.

Having 0 as an enum value causes wlr_output_layout_adjacent_output() to
never match WLR_DIRECTION_UP.
This commit is contained in:
Ryan Dwyer 2018-04-26 19:09:55 +10:00
parent 31857c9ed4
commit de97f90246

View file

@ -105,9 +105,9 @@ struct wlr_output *wlr_output_layout_get_center_output(
struct wlr_output_layout *layout); struct wlr_output_layout *layout);
enum wlr_direction { enum wlr_direction {
WLR_DIRECTION_UP = 0, WLR_DIRECTION_UP = 1,
WLR_DIRECTION_DOWN = 1, WLR_DIRECTION_DOWN = 2,
WLR_DIRECTION_LEFT = 2, WLR_DIRECTION_LEFT = 3,
WLR_DIRECTION_RIGHT = 4, WLR_DIRECTION_RIGHT = 4,
}; };