diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-29 12:03:13 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-29 12:03:13 -0500 |
commit | e59cffcea2a881f16de3716c6b24d93aceb8c79a (patch) | |
tree | a09447b6eb903573edb598c7b80ac7c3c492dee5 /include | |
parent | Add swaybar basics (diff) | |
download | sway-e59cffcea2a881f16de3716c6b24d93aceb8c79a.tar.gz sway-e59cffcea2a881f16de3716c6b24d93aceb8c79a.tar.zst sway-e59cffcea2a881f16de3716c6b24d93aceb8c79a.zip |
Support desktop shell panels in compositor
Diffstat (limited to 'include')
-rw-r--r-- | include/extensions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/extensions.h b/include/extensions.h index 2fca23c1..1ef7d920 100644 --- a/include/extensions.h +++ b/include/extensions.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _SWAY_EXTENSIONS_H | 1 | #ifndef _SWAY_EXTENSIONS_H |
2 | #define _SWAY_EXTENSIONS_H | 2 | #define _SWAY_EXTENSIONS_H |
3 | 3 | ||
4 | #include "wayland-desktop-shell-server-protocol.h" | ||
4 | #include "list.h" | 5 | #include "list.h" |
5 | #include "wlc/wlc-wayland.h" | 6 | #include "wlc/wlc-wayland.h" |
6 | 7 | ||
@@ -9,8 +10,16 @@ struct background_config { | |||
9 | wlc_resource surface; | 10 | wlc_resource surface; |
10 | }; | 11 | }; |
11 | 12 | ||
13 | struct panel_config { | ||
14 | wlc_handle output; | ||
15 | wlc_resource surface; | ||
16 | }; | ||
17 | |||
12 | struct desktop_shell_state { | 18 | struct desktop_shell_state { |
13 | list_t *backgrounds; | 19 | list_t *backgrounds; |
20 | list_t *panels; | ||
21 | enum desktop_shell_panel_position panel_position; | ||
22 | struct wlc_size panel_size; | ||
14 | }; | 23 | }; |
15 | 24 | ||
16 | extern struct desktop_shell_state desktop_shell; | 25 | extern struct desktop_shell_state desktop_shell; |