Introduce common functions to create, map, unmap, destroy views

This commit is contained in:
emersion 2018-03-31 17:49:40 -04:00
parent 122b96abed
commit b2c2ee693b
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
8 changed files with 212 additions and 150 deletions

View file

@ -70,9 +70,8 @@ struct sway_container {
enum sway_container_layout prev_layout;
enum sway_container_layout workspace_layout;
// TODO convert to layout coordinates
// in output-local coordinates
double x, y;
// does not include borders or gaps.
double width, height;