mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Support desktop shell panels in compositor
This commit is contained in:
parent
60e76cf932
commit
e59cffcea2
5 changed files with 130 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue