Decorations: handle results of kde-server-decoration negotiations

This commit is contained in:
Johan Malm 2023-03-22 19:56:59 +00:00 committed by Johan Malm
parent 5ee2ec7fff
commit ef30e3750d
6 changed files with 160 additions and 36 deletions

View file

@ -3,7 +3,13 @@
#define __LAB_DECORATIONS_H
struct server;
struct view;
struct wlr_surface;
void kde_server_decoration_init(struct server *server);
void xdg_server_decoration_init(struct server *server);
void kde_server_decoration_update_default(void);
void kde_server_decoration_set_view(struct view *view, struct wlr_surface *surface);
#endif /* __LAB_DECORATIONS_H */

View file

@ -34,7 +34,6 @@
#include <wlr/types/wlr_pointer_constraints_v1.h>
#include <wlr/types/wlr_pointer_gestures_v1.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/types/wlr_server_decoration.h>
#include <wlr/types/wlr_subcompositor.h>
#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_activation_v1.h>
@ -220,6 +219,7 @@ struct server {
struct wl_listener new_xdg_surface;
struct wl_listener new_layer_surface;
struct wl_listener kde_server_decoration;
struct wl_listener xdg_toplevel_decoration;
#if HAVE_XWAYLAND
struct wlr_xwayland *xwayland;