aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-20 12:05:32 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-20 12:05:32 -0500
commit3082245243689e978186d6a6ba69972b050fb288 (patch)
tree364472d861aac5192e964a4984e1e63752e16c90 /include
parentMerge pull request #378 from mikkeloscar/bar-pixel-perfect (diff)
parentextensions: Track panels by wl_resource, position per panel. (diff)
downloadsway-3082245243689e978186d6a6ba69972b050fb288.tar.gz
sway-3082245243689e978186d6a6ba69972b050fb288.tar.zst
sway-3082245243689e978186d6a6ba69972b050fb288.zip
Merge pull request #373 from sce/per_panel_config
Per panel config
Diffstat (limited to 'include')
-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 @@
9struct background_config { 9struct background_config {
10 wlc_handle output; 10 wlc_handle output;
11 wlc_resource surface; 11 wlc_resource surface;
12 struct wl_resource *resource; 12 // we need the wl_resource of the surface in the destructor
13 struct wl_resource *wl_surface_res;
13}; 14};
14 15
15struct panel_config { 16struct panel_config {
17 // wayland resource used in callbacks, is used to track this panel
18 struct wl_resource *wl_resource;
16 wlc_handle output; 19 wlc_handle output;
17 wlc_resource surface; 20 wlc_resource surface;
18 struct wl_resource *resource; 21 // we need the wl_resource of the surface in the destructor
22 struct wl_resource *wl_surface_res;
23 enum desktop_shell_panel_position panel_position;
19}; 24};
20 25
21struct desktop_shell_state { 26struct desktop_shell_state {
@@ -23,7 +28,6 @@ struct desktop_shell_state {
23 list_t *panels; 28 list_t *panels;
24 list_t *lock_surfaces; 29 list_t *lock_surfaces;
25 bool is_locked; 30 bool is_locked;
26 enum desktop_shell_panel_position panel_position;
27 struct wlc_size panel_size; 31 struct wlc_size panel_size;
28}; 32};
29 33