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