wlmaker
Loading...
Searching...
No Matches
xwl.h
Go to the documentation of this file.
1/* ========================================================================= */
22#ifndef __XWL_H__
23#define __XWL_H__
24
25#if defined(WLMAKER_HAVE_XWAYLAND)
26#include <stdbool.h>
27#include <xcb/xproto.h>
28
29struct wlr_xwayland_surface;
30
31#endif // defined(WLMAKER_HAVE_XWAYLAND)
32
35#include "server.h" // IWYU pragma: keep
36
37#ifdef __cplusplus
38extern "C" {
39#endif // __cplusplus
40
41#if defined(WLMAKER_HAVE_XWAYLAND)
42
44typedef enum {
45 NET_WM_WINDOW_TYPE_NORMAL,
46 NET_WM_WINDOW_TYPE_DIALOG,
47 NET_WM_WINDOW_TYPE_UTILITY,
48 NET_WM_WINDOW_TYPE_TOOLBAR,
49 NET_WM_WINDOW_TYPE_SPLASH,
50 NET_WM_WINDOW_TYPE_MENU,
51 NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
52 NET_WM_WINDOW_TYPE_POPUP_MENU,
53 NET_WM_WINDOW_TYPE_TOOLTIP,
54 NET_WM_WINDOW_TYPE_NOTIFICATION,
55
56 // Sentinel element.
57 XWL_MAX_ATOM_ID
59#endif // defined(WLMAKER_HAVE_XWAYLAND)
60
70
77
78#if defined(WLMAKER_HAVE_XWAYLAND)
79
91 wlmaker_xwl_t *xwl_ptr,
92 struct wlr_xwayland_surface *wlr_xwayland_surface_ptr,
93 const xwl_atom_identifier_t *atom_identifiers);
94
96const char *xwl_atom_name(
97 wlmaker_xwl_t *xwl_ptr,
98 xcb_atom_t atom);
99
100#ifdef __cplusplus
101} // extern "C"
102#endif // __cplusplus
103
104#endif // defined(WLMAKER_HAVE_XWAYLAND)
105#endif /* __XWL_H__ */
106/* == End of xwl.h ========================================================= */
Definition server.h:84
Definition xwl.c:87
wlmaker_server_t * server_ptr
Definition xwl.c:89
xwl_atom_identifier_t
Definition xwl.h:44
const char * xwl_atom_name(wlmaker_xwl_t *xwl_ptr, xcb_atom_t atom)
Definition xwl.c:214
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:195
wlmaker_xwl_t * wlmaker_xwl_create(wlmaker_server_t *server_ptr)
Definition xwl.c:134
void wlmaker_xwl_destroy(wlmaker_xwl_t *xwl_ptr)
Definition xwl.c:171