Listen to output layout change

This commit is contained in:
emersion 2017-12-12 20:02:01 +01:00
parent f3d880b0ec
commit c7abb77f22
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 43 additions and 30 deletions

View file

@ -1,8 +1,16 @@
#ifndef _SWAY_LAYOUT_H
#define _SWAY_LAYOUT_H
#include <wlr/types/wlr_output_layout.h>
struct sway_container;
struct sway_root {
struct wlr_output_layout *output_layout;
struct wl_listener output_layout_change;
};
void init_layout(void);
void add_child(struct sway_container *parent, struct sway_container *child);
struct sway_container *remove_child(struct sway_container *child);