mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Instead of waiting for the surface to be mapped before sending a configure event, do it on initial commit. Note, wlroots 0.18 no longer sends automatic configure events on initial commit.
33 lines
831 B
C
33 lines
831 B
C
#ifndef CG_XDG_SHELL_H
|
|
#define CG_XDG_SHELL_H
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_xdg_decoration_v1.h>
|
|
#include <wlr/types/wlr_xdg_shell.h>
|
|
|
|
#include "view.h"
|
|
|
|
struct cg_xdg_shell_view {
|
|
struct cg_view view;
|
|
struct wlr_xdg_toplevel *xdg_toplevel;
|
|
|
|
struct wl_listener destroy;
|
|
struct wl_listener commit;
|
|
struct wl_listener unmap;
|
|
struct wl_listener map;
|
|
struct wl_listener request_fullscreen;
|
|
};
|
|
|
|
struct cg_xdg_decoration {
|
|
struct wlr_xdg_toplevel_decoration_v1 *wlr_decoration;
|
|
struct cg_server *server;
|
|
struct wl_listener destroy;
|
|
struct wl_listener request_mode;
|
|
};
|
|
|
|
void handle_new_xdg_toplevel(struct wl_listener *listener, void *data);
|
|
void handle_new_xdg_popup(struct wl_listener *listener, void *data);
|
|
|
|
void handle_xdg_toplevel_decoration(struct wl_listener *listener, void *data);
|
|
|
|
#endif
|