remove unused fields in MwLLWayland
Some checks are pending
pyrite-dev/milsko/pipeline/head Build started...

This commit is contained in:
IoIxD 2026-09-16 15:32:45 -07:00
commit e6e69b9915
2 changed files with 1 additions and 21 deletions

View file

@ -320,7 +320,6 @@ struct _MwLLWayland {
enum _MwLLWaylandType type_to_be; enum _MwLLWaylandType type_to_be;
MwRect clipping_rect; MwRect clipping_rect;
MwBool no;
MwBool changing; MwBool changing;
MwBool detatching; MwBool detatching;
@ -361,8 +360,6 @@ struct _MwLLWayland {
struct wl_region* region; struct wl_region* region;
struct wl_output* output; struct wl_output* output;
struct wp_viewport* vp;
MwBool do_lock_pointer; MwBool do_lock_pointer;
struct zwp_pointer_constraints_v1* pointer_constraints; struct zwp_pointer_constraints_v1* pointer_constraints;
struct zwp_relative_pointer_manager_v1* relative_pointer_manager; struct zwp_relative_pointer_manager_v1* relative_pointer_manager;
@ -378,9 +375,8 @@ struct _MwLLWayland {
MwBool dark_theme_detection; MwBool dark_theme_detection;
MwU32 dark_theme; MwU32 dark_theme;
/* clipboard related stuff. /* clipboard/ related stuff.
* Note that unlike most interfaces, we don't keep zwp_primary_selection stuff in a wayland_protocol_t because we use wl_data_device as a fallback and want to have it share memory space.*/ * Note that unlike most interfaces, we don't keep zwp_primary_selection stuff in a wayland_protocol_t because we use wl_data_device as a fallback and want to have it share memory space.*/
struct { struct {
struct wl_data_device_manager* wl; struct wl_data_device_manager* wl;
struct zwp_primary_selection_device_manager_v1* zwp; struct zwp_primary_selection_device_manager_v1* zwp;

View file

@ -1431,20 +1431,6 @@ static void xdg_wm_base_interface_destroy(struct _MwLLWayland* wayland, wayland_
free(data); free(data);
} }
/* xdg_wm_base setup function */
static wayland_protocol_t* wp_viewporter_setup(MwU32 name, struct _MwLLWayland* wayland, MwU32 version) {
wayland_protocol_t* proto = malloc(sizeof(wayland_protocol_t));
(void)version;
proto->context = wl_registry_bind(wayland->registry, name, &wp_viewporter_interface, 1);
return proto;
}
static void wp_viewporter_interface_destroy(struct _MwLLWayland* wayland, wayland_protocol_t* data) {
(void)wayland;
(void)data;
}
/* zxdg_decoration_manager_v1 setup function */ /* zxdg_decoration_manager_v1 setup function */
static wayland_protocol_t* zxdg_decoration_manager_v1_setup(MwU32 name, struct _MwLLWayland* wayland, MwU32 version) { static wayland_protocol_t* zxdg_decoration_manager_v1_setup(MwU32 name, struct _MwLLWayland* wayland, MwU32 version) {
wayland_protocol_t* proto = malloc(sizeof(wayland_protocol_t)); wayland_protocol_t* proto = malloc(sizeof(wayland_protocol_t));
@ -1564,7 +1550,6 @@ void MwLLWaylandSetupCallbacks(struct _MwLLWayland* wayland) {
WL_INTERFACE(xdg_wm_base); WL_INTERFACE(xdg_wm_base);
WL_INTERFACE(zwlr_layer_shell_v1); /* Only used for layer surface, but we use it always if it's turned into a tool window */ WL_INTERFACE(zwlr_layer_shell_v1); /* Only used for layer surface, but we use it always if it's turned into a tool window */
if(wayland->type == MwLL_WAYLAND_TOPLEVEL) { if(wayland->type == MwLL_WAYLAND_TOPLEVEL) {
WL_INTERFACE(wp_viewporter);
WL_INTERFACE(zxdg_decoration_manager_v1); WL_INTERFACE(zxdg_decoration_manager_v1);
WL_INTERFACE(xdg_toplevel_icon_manager_v1); WL_INTERFACE(xdg_toplevel_icon_manager_v1);
WL_INTERFACE(wl_subcompositor); WL_INTERFACE(wl_subcompositor);
@ -1573,7 +1558,6 @@ void MwLLWaylandSetupCallbacks(struct _MwLLWayland* wayland) {
} else if(wayland->type == MwLL_WAYLAND_POPUP) { } else if(wayland->type == MwLL_WAYLAND_POPUP) {
WL_INTERFACE(wl_seat); WL_INTERFACE(wl_seat);
} else if(wayland->type == MwLL_WAYLAND_LAYER_SURFACE) { } else if(wayland->type == MwLL_WAYLAND_LAYER_SURFACE) {
WL_INTERFACE(wp_viewporter);
WL_INTERFACE(wl_subcompositor); WL_INTERFACE(wl_subcompositor);
WL_INTERFACE(wl_seat); WL_INTERFACE(wl_seat);
} else { } else {