2015-11-19 14:01:22 +11:00
|
|
|
#ifndef _SWAY_EXTENSIONS_H
|
|
|
|
#define _SWAY_EXTENSIONS_H
|
|
|
|
|
2015-12-11 09:04:09 +11:00
|
|
|
#include <wayland-server.h>
|
2015-12-04 00:35:22 +11:00
|
|
|
#include <wlc/wlc-wayland.h>
|
2015-11-30 04:03:13 +11:00
|
|
|
#include "wayland-desktop-shell-server-protocol.h"
|
2015-11-19 14:14:57 +11:00
|
|
|
#include "list.h"
|
|
|
|
|
|
|
|
struct background_config {
|
|
|
|
wlc_handle output;
|
2015-11-19 23:23:11 +11:00
|
|
|
wlc_resource surface;
|
2015-12-04 00:35:22 +11:00
|
|
|
struct wl_resource *resource;
|
2015-11-19 14:14:57 +11:00
|
|
|
};
|
|
|
|
|
2015-11-30 04:03:13 +11:00
|
|
|
struct panel_config {
|
|
|
|
wlc_handle output;
|
|
|
|
wlc_resource surface;
|
2015-12-04 00:35:22 +11:00
|
|
|
struct wl_resource *resource;
|
2015-11-30 04:03:13 +11:00
|
|
|
};
|
|
|
|
|
2015-11-19 14:14:57 +11:00
|
|
|
struct desktop_shell_state {
|
|
|
|
list_t *backgrounds;
|
2015-11-30 04:03:13 +11:00
|
|
|
list_t *panels;
|
|
|
|
enum desktop_shell_panel_position panel_position;
|
|
|
|
struct wlc_size panel_size;
|
2015-11-19 14:14:57 +11:00
|
|
|
};
|
|
|
|
|
2015-12-04 00:35:22 +11:00
|
|
|
struct swaylock_state {
|
|
|
|
bool active;
|
|
|
|
wlc_handle output;
|
|
|
|
wlc_resource surface;
|
|
|
|
};
|
|
|
|
|
2015-11-19 14:14:57 +11:00
|
|
|
extern struct desktop_shell_state desktop_shell;
|
|
|
|
|
2015-11-19 14:01:22 +11:00
|
|
|
void register_extensions(void);
|
|
|
|
|
|
|
|
#endif
|