aboutsummaryrefslogtreecommitdiff
path: root/include/extensions.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-20 12:05:32 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-20 12:05:32 -0500
commit3082245243689e978186d6a6ba69972b050fb288 (patch)
tree364472d861aac5192e964a4984e1e63752e16c90 /include/extensions.h
parentfdb9ce52ef7e8b4abce0e0d3b86c0bc67d7d943a (diff)
parente45fd9b6c5dfb858c6f86277351bc216574d8200 (diff)
Merge pull request #373 from sce/per_panel_config
Per panel config
Diffstat (limited to 'include/extensions.h')
-rw-r--r--include/extensions.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/extensions.h b/include/extensions.h
index 311ead1d..164688ee 100644
--- a/include/extensions.h
+++ b/include/extensions.h
@@ -9,13 +9,18 @@
struct background_config {
wlc_handle output;
wlc_resource surface;
- struct wl_resource *resource;
+ // we need the wl_resource of the surface in the destructor
+ struct wl_resource *wl_surface_res;
};
struct panel_config {
+ // wayland resource used in callbacks, is used to track this panel
+ struct wl_resource *wl_resource;
wlc_handle output;
wlc_resource surface;
- struct wl_resource *resource;
+ // we need the wl_resource of the surface in the destructor
+ struct wl_resource *wl_surface_res;
+ enum desktop_shell_panel_position panel_position;
};
struct desktop_shell_state {
@@ -23,7 +28,6 @@ struct desktop_shell_state {
list_t *panels;
list_t *lock_surfaces;
bool is_locked;
- enum desktop_shell_panel_position panel_position;
struct wlc_size panel_size;
};