aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-29 12:18:13 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-29 12:18:50 -0400
commitb887af9a6013ea0466b6152e74f69659d7d45711 (patch)
treef6bffa0f7d120b5d4a085f17776d66fa2cdcd830 /include/rootston
parenta316396eab8f865cbb4dc40300519de3ff3b9659 (diff)
Fix maximized windows interaction with layer shell
If there were no layer surfaces the usable area of the output would be an empty box.
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/layers.h6
-rw-r--r--include/rootston/output.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/include/rootston/layers.h b/include/rootston/layers.h
index 35f5399e..0e5164bb 100644
--- a/include/rootston/layers.h
+++ b/include/rootston/layers.h
@@ -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
diff --git a/include/rootston/output.h b/include/rootston/output.h
index e40ad776..bf152038 100644
--- a/include/rootston/output.h
+++ b/include/rootston/output.h
@@ -23,6 +23,8 @@ struct roots_output {
struct wlr_box usable_area;
struct wl_listener destroy;
+ struct wl_listener mode;
+ struct wl_listener transform;
struct wl_listener damage_frame;
struct wl_listener damage_destroy;
};