wlmaker
Loading...
Searching...
No Matches
xwl.h
Go to the documentation of this file.
1/* ========================================================================= */
22#ifndef __XWL_H__
23#define __XWL_H__
24
27
28#include "server.h"
29
30#define WLR_USE_UNSTABLE
31#include <wlr/xwayland.h>
32#undef WLR_USE_UNSTABLE
33
34#ifdef __cplusplus
35extern "C" {
36#endif // __cplusplus
37
39typedef enum {
40 NET_WM_WINDOW_TYPE_NORMAL,
41 NET_WM_WINDOW_TYPE_DIALOG,
42 NET_WM_WINDOW_TYPE_UTILITY,
43 NET_WM_WINDOW_TYPE_TOOLBAR,
44 NET_WM_WINDOW_TYPE_SPLASH,
45 NET_WM_WINDOW_TYPE_MENU,
46 NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
47 NET_WM_WINDOW_TYPE_POPUP_MENU,
48 NET_WM_WINDOW_TYPE_TOOLTIP,
49 NET_WM_WINDOW_TYPE_NOTIFICATION,
50
51 // Sentinel element.
52 XWL_MAX_ATOM_ID
54
64
71
83 wlmaker_xwl_t *xwl_ptr,
84 struct wlr_xwayland_surface *wlr_xwayland_surface_ptr,
85 const xwl_atom_identifier_t *atom_identifiers);
86
88const char *xwl_atom_name(
89 wlmaker_xwl_t *xwl_ptr,
90 xcb_atom_t atom);
91
92#ifdef __cplusplus
93} // extern "C"
94#endif // __cplusplus
95
96#endif /* __XWL_H__ */
97/* == End of xwl.h ========================================================= */
Definition server.h:60
Definition xwl.c:76
wlmaker_server_t * server_ptr
Definition xwl.c:78
xwl_atom_identifier_t
Definition xwl.h:39
const char * xwl_atom_name(wlmaker_xwl_t *xwl_ptr, xcb_atom_t atom)
Definition xwl.c:192
bool xwl_is_window_type(wlmaker_xwl_t *xwl_ptr, struct wlr_xwayland_surface *wlr_xwayland_surface_ptr, const xwl_atom_identifier_t *atom_identifiers)
Definition xwl.c:173
wlmaker_xwl_t * wlmaker_xwl_create(wlmaker_server_t *server_ptr)
Definition xwl.c:118
void wlmaker_xwl_destroy(wlmaker_xwl_t *xwl_ptr)
Definition xwl.c:152