Fix WLR_DIRECTION enums.

Having 0 as an enum value causes wlr_output_layout_adjacent_output() to
never match WLR_DIRECTION_UP.
master
Ryan Dwyer 7 years ago
parent 31857c9ed4
commit de97f90246

@ -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,
}; };

Loading…
Cancel
Save