aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rootston/desktop.h2
-rw-r--r--include/wlr/types/wlr_server_decoration.h9
2 files changed, 4 insertions, 7 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index c3859afb..376412fb 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -37,11 +37,13 @@ struct roots_desktop {
struct wlr_xdg_shell_v6 *xdg_shell_v6;
struct wlr_gamma_control_manager *gamma_control_manager;
struct wlr_screenshooter *screenshooter;
+ struct wlr_server_decoration_manager *server_decoration_manager;
struct wl_listener output_add;
struct wl_listener output_remove;
struct wl_listener xdg_shell_v6_surface;
struct wl_listener wl_shell_surface;
+ struct wl_listener decoration_new;
#ifdef HAS_XWAYLAND
struct wlr_xwayland *xwayland;
diff --git a/include/wlr/types/wlr_server_decoration.h b/include/wlr/types/wlr_server_decoration.h
index 059aa77f..b4cac5b7 100644
--- a/include/wlr/types/wlr_server_decoration.h
+++ b/include/wlr/types/wlr_server_decoration.h
@@ -22,13 +22,11 @@ struct wlr_server_decoration {
struct wlr_surface *surface;
struct wl_list link;
- // enum org_kde_kwin_server_decoration_manager_mode
- uint32_t requested_mode;
- uint32_t sent_mode;
+ uint32_t mode; // enum org_kde_kwin_server_decoration_manager_mode
struct {
struct wl_signal destroy;
- struct wl_signal request_mode;
+ struct wl_signal mode;
} events;
struct wl_listener surface_destroy_listener;
@@ -43,7 +41,4 @@ void wlr_server_decoration_manager_set_default_mode(
void wlr_server_decoration_manager_destroy(
struct wlr_server_decoration_manager *manager);
-void wlr_server_decoration_send_mode(struct wlr_server_decoration *decoration,
- uint32_t mode);
-
#endif