summaryrefslogtreecommitdiffstats
path: root/include/extensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/extensions.h')
-rw-r--r--include/extensions.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/include/extensions.h b/include/extensions.h
index 158a40a2..7c508b5e 100644
--- a/include/extensions.h
+++ b/include/extensions.h
@@ -7,33 +7,37 @@
7#include "list.h" 7#include "list.h"
8 8
9struct background_config { 9struct background_config {
10 wlc_handle output; 10 wlc_handle output;
11 wlc_resource surface; 11 wlc_resource surface;
12 // we need the wl_resource of the surface in the destructor 12 // we need the wl_resource of the surface in the destructor
13 struct wl_resource *wl_surface_res; 13 struct wl_resource *wl_surface_res;
14 // used to determine if client is a background
15 struct wl_client *client;
14}; 16};
15 17
16struct panel_config { 18struct panel_config {
17 // wayland resource used in callbacks, is used to track this panel 19 // wayland resource used in callbacks, is used to track this panel
18 struct wl_resource *wl_resource; 20 struct wl_resource *wl_resource;
19 wlc_handle output; 21 wlc_handle output;
20 wlc_resource surface; 22 wlc_resource surface;
21 // we need the wl_resource of the surface in the destructor 23 // we need the wl_resource of the surface in the destructor
22 struct wl_resource *wl_surface_res; 24 struct wl_resource *wl_surface_res;
23 enum desktop_shell_panel_position panel_position; 25 enum desktop_shell_panel_position panel_position;
26 // used to determine if client is a panel
27 struct wl_client *client;
24}; 28};
25 29
26struct desktop_shell_state { 30struct desktop_shell_state {
27 list_t *backgrounds; 31 list_t *backgrounds;
28 list_t *panels; 32 list_t *panels;
29 list_t *lock_surfaces; 33 list_t *lock_surfaces;
30 bool is_locked; 34 bool is_locked;
31}; 35};
32 36
33struct swaylock_state { 37struct swaylock_state {
34 bool active; 38 bool active;
35 wlc_handle output; 39 wlc_handle output;
36 wlc_resource surface; 40 wlc_resource surface;
37}; 41};
38 42
39extern struct desktop_shell_state desktop_shell; 43extern struct desktop_shell_state desktop_shell;