REFACTOR "STASH" (nowhere near working btw)
This commit is contained in:
parent
8dfe3b2f25
commit
ab3942d3b5
25 changed files with 1021 additions and 845 deletions
|
|
@ -1,9 +1,22 @@
|
|||
#ifndef CRYWL_DECORATION_H
|
||||
#define CRYWL_DECORATION_H
|
||||
|
||||
/* ===== Function Declarations ===== */
|
||||
static void createdecoration(struct wl_listener *listener, void *data);
|
||||
static void destroydecoration(struct wl_listener *listener, void *data);
|
||||
static void requestdecorationmode(struct wl_listener *listener, void *data);
|
||||
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
||||
|
||||
#include "client.h"
|
||||
|
||||
static inline void destroydecoration(struct wl_listener *listener, void *data) {
|
||||
Client *c = wl_container_of(listener, c, destroy_decoration);
|
||||
|
||||
wl_list_remove(&c->destroy_decoration.link);
|
||||
wl_list_remove(&c->set_decoration_mode.link);
|
||||
}
|
||||
|
||||
static inline void requestdecorationmode(struct wl_listener *listener, void *data) {
|
||||
Client *c = wl_container_of(listener, c, set_decoration_mode);
|
||||
if (c->surface.xdg->initialized)
|
||||
wlr_xdg_toplevel_decoration_v1_set_mode(
|
||||
c->decoration, WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
|
||||
}
|
||||
|
||||
#endif /* CRYWL_DECORATION_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue