bug: fix view centering

This commit is contained in:
Tony Crisci 2017-10-16 14:35:16 -04:00
parent 11c1b811db
commit 19784360f1
8 changed files with 62 additions and 44 deletions

View file

@ -84,4 +84,10 @@ struct wlr_box *wlr_output_layout_get_box(
void wlr_output_layout_add_auto(struct wlr_output_layout *layout,
struct wlr_output *output);
/**
* Get the output closest to the center of the layout extents.
*/
struct wlr_output *wlr_output_layout_get_center_output(
struct wlr_output_layout *layout);
#endif

View file

@ -106,6 +106,7 @@ struct wlr_xdg_surface_v6 {
struct wl_list popup_link;
bool configured;
bool added;
struct wl_event_source *configure_idle;
struct wl_list configure_list;