handle resizing, turn _MwLLWaylandToplevel into a pointer

This commit is contained in:
IoIxD 2025-12-01 11:45:55 -07:00
commit b2ea14c354
2 changed files with 89 additions and 53 deletions

View file

@ -47,15 +47,13 @@ struct _MwLLWaylandTopLevel {
struct _MwLLWayland {
struct _MwLLCommon common;
union {
struct _MwLLWaylandTopLevel toplevel;
struct wl_subsurface* subsurface;
struct _MwLLWaylandTopLevel* toplevel;
struct wl_subsurface* subsurface;
};
enum {
MWLL_WAYLAND_TOPLEVEL = 0,
MWLL_WAYLAND_SUBSURFACE = 1,
} type;
MwU32 ww;
MwU32 wh;
struct wl_display* display;
struct wl_registry* registry;
@ -76,6 +74,7 @@ struct _MwLLWayland {
}* wl_protocol_map;
MwBool configured;
MwU32 x, y, ww, wh;
};
struct _MwLLWaylandColor {