Support desktop shell panels in compositor

This commit is contained in:
Drew DeVault 2015-11-29 12:03:13 -05:00
parent 60e76cf932
commit e59cffcea2
5 changed files with 130 additions and 22 deletions

View file

@ -1,6 +1,7 @@
#ifndef _SWAY_EXTENSIONS_H
#define _SWAY_EXTENSIONS_H
#include "wayland-desktop-shell-server-protocol.h"
#include "list.h"
#include "wlc/wlc-wayland.h"
@ -9,8 +10,16 @@ struct background_config {
wlc_resource surface;
};
struct panel_config {
wlc_handle output;
wlc_resource surface;
};
struct desktop_shell_state {
list_t *backgrounds;
list_t *panels;
enum desktop_shell_panel_position panel_position;
struct wlc_size panel_size;
};
extern struct desktop_shell_state desktop_shell;