Fix maximized windows interaction with layer shell

If there were no layer surfaces the usable area of the output would be
an empty box.
This commit is contained in:
Drew DeVault 2018-03-29 12:18:13 -04:00
parent a316396eab
commit b887af9a60
4 changed files with 28 additions and 29 deletions

View file

@ -1,7 +1,6 @@
#ifndef ROOTSTON_LAYERS_H
#define ROOTSTON_LAYERS_H
#include <stdbool.h>
#include <wlr/config.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_layer_shell.h>
@ -15,11 +14,12 @@ struct roots_layer_surface {
struct wl_listener unmap;
struct wl_listener surface_commit;
struct wl_listener output_destroy;
struct wl_listener output_mode;
struct wl_listener output_transform;
bool configured;
struct wlr_box geo;
};
struct roots_output;
void arrange_layers(struct roots_output *output);
#endif