| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
rg |
| 6 |
i |
| 7 |
e |
| 8 |
n |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
#include <stdlib.h> |
| 31 |
#include <stdint.h> |
| 32 |
#include "wayland-util.h" |
| 33 |
|
| 34 |
extern const struct wl_interface wl_output_interface; |
| 35 |
extern const struct wl_interface wl_seat_interface; |
| 36 |
extern const struct wl_interface wl_surface_interface; |
| 37 |
extern const struct wl_interface xdg_popup_v5_interface; |
| 38 |
extern const struct wl_interface xdg_surface_v5_interface; |
| 39 |
|
| 40 |
static const struct wl_interface *types[] = { |
| 41 |
NULL, |
| 42 |
NULL, |
| 43 |
NULL, |
| 44 |
NULL, |
| 45 |
&xdg_surface_v5_interface, |
| 46 |
&wl_surface_interface, |
| 47 |
&xdg_popup_v5_interface, |
| 48 |
&wl_surface_interface, |
| 49 |
&wl_surface_interface, |
| 50 |
&wl_seat_interface, |
| 51 |
NULL, |
| 52 |
NULL, |
| 53 |
NULL, |
| 54 |
&xdg_surface_v5_interface, |
| 55 |
&wl_seat_interface, |
| 56 |
NULL, |
| 57 |
NULL, |
| 58 |
NULL, |
| 59 |
&wl_seat_interface, |
| 60 |
NULL, |
| 61 |
&wl_seat_interface, |
| 62 |
NULL, |
| 63 |
NULL, |
| 64 |
&wl_output_interface, |
| 65 |
}; |
| 66 |
|
| 67 |
static const struct wl_message xdg_shell_requests[] = { |
| 68 |
{ "destroy", "", types + 0 }, |
| 69 |
{ "use_unstable_version", "i", types + 0 }, |
| 70 |
{ "get_xdg_surface", "no", types + 4 }, |
| 71 |
{ "get_xdg_popup", "nooouii", types + 6 }, |
| 72 |
{ "pong", "u", types + 0 }, |
| 73 |
}; |
| 74 |
|
| 75 |
static const struct wl_message xdg_shell_events[] = { |
| 76 |
{ "ping", "u", types + 0 }, |
| 77 |
}; |
| 78 |
|
| 79 |
WL_EXPORT const struct wl_interface xdg_shell_v5_interface = { |
| 80 |
"xdg_shell", 1, |
| 81 |
5, xdg_shell_requests, |
| 82 |
1, xdg_shell_events, |
| 83 |
}; |
| 84 |
|
| 85 |
static const struct wl_message xdg_surface_requests[] = { |
| 86 |
{ "destroy", "", types + 0 }, |
| 87 |
{ "set_parent", "?o", types + 13 }, |
| 88 |
{ "set_title", "s", types + 0 }, |
| 89 |
{ "set_app_id", "s", types + 0 }, |
| 90 |
{ "show_window_menu", "ouii", types + 14 }, |
| 91 |
{ "move", "ou", types + 18 }, |
| 92 |
{ "resize", "ouu", types + 20 }, |
| 93 |
{ "ack_configure", "u", types + 0 }, |
| 94 |
{ "set_window_geometry", "iiii", types + 0 }, |
| 95 |
{ "set_maximized", "", types + 0 }, |
| 96 |
{ "unset_maximized", "", types + 0 }, |
| 97 |
{ "set_fullscreen", "?o", types + 23 }, |
| 98 |
{ "unset_fullscreen", "", types + 0 }, |
| 99 |
{ "set_minimized", "", types + 0 }, |
| 100 |
}; |
| 101 |
|
| 102 |
static const struct wl_message xdg_surface_events[] = { |
| 103 |
{ "configure", "iiau", types + 0 }, |
| 104 |
{ "close", "", types + 0 }, |
| 105 |
}; |
| 106 |
|
| 107 |
WL_EXPORT const struct wl_interface xdg_surface_v5_interface = { |
| 108 |
"xdg_surface", 1, |
| 109 |
14, xdg_surface_requests, |
| 110 |
2, xdg_surface_events, |
| 111 |
}; |
| 112 |
|
| 113 |
static const struct wl_message xdg_popup_requests[] = { |
| 114 |
{ "destroy", "", types + 0 }, |
| 115 |
}; |
| 116 |
|
| 117 |
static const struct wl_message xdg_popup_events[] = { |
| 118 |
{ "popup_done", "", types + 0 }, |
| 119 |
}; |
| 120 |
|
| 121 |
WL_EXPORT const struct wl_interface xdg_popup_v5_interface = { |
| 122 |
"xdg_popup", 1, |
| 123 |
1, xdg_popup_requests, |
| 124 |
1, xdg_popup_events, |
| 125 |
}; |
| 126 |
|