wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
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
30
struct
wlr_xwayland_surface;
31
32
#endif
// defined(WLMAKER_HAVE_XWAYLAND)
33
35
typedef
struct
_wlmaker_xwl_t
wlmaker_xwl_t
;
36
#include "
task_list.h
"
37
38
#ifdef __cplusplus
39
extern
"C"
{
40
#endif
// __cplusplus
41
42
#if defined(WLMAKER_HAVE_XWAYLAND)
43
45
typedef
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
59
}
xwl_atom_identifier_t
;
60
#endif
// defined(WLMAKER_HAVE_XWAYLAND)
61
70
wlmaker_xwl_t
*
wlmaker_xwl_create
(
wlmaker_server_t
*
server_ptr
);
71
77
void
wlmaker_xwl_destroy
(
wlmaker_xwl_t
*xwl_ptr);
78
79
#if defined(WLMAKER_HAVE_XWAYLAND)
80
91
bool
xwl_is_window_type
(
92
wlmaker_xwl_t
*xwl_ptr,
93
struct
wlr_xwayland_surface *wlr_xwayland_surface_ptr,
94
const
xwl_atom_identifier_t
*atom_identifiers);
95
97
const
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 ========================================================= */
wlmaker_server_t
struct _wlmaker_server_t wlmaker_server_t
Definition
server.h:40
_wlmaker_xwl_t
Definition
xwl.c:89
_wlmaker_xwl_t::server_ptr
wlmaker_server_t * server_ptr
Definition
xwl.c:91
task_list.h
xwl_atom_identifier_t
xwl_atom_identifier_t
Definition
xwl.h:45
wlmaker_xwl_t
struct _wlmaker_xwl_t wlmaker_xwl_t
Definition
xwl.h:35
xwl_atom_name
const char * xwl_atom_name(wlmaker_xwl_t *xwl_ptr, xcb_atom_t atom)
Definition
xwl.c:220
xwl_is_window_type
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_create
wlmaker_xwl_t * wlmaker_xwl_create(wlmaker_server_t *server_ptr)
Definition
xwl.c:136
wlmaker_xwl_destroy
void wlmaker_xwl_destroy(wlmaker_xwl_t *xwl_ptr)
Definition
xwl.c:173
Generated by
1.17.0