subsurfaces have been useless for awhile, remove them and name the sub-widgets sublevels

This commit is contained in:
IoIxD 2025-12-07 20:41:37 -07:00
commit 87d7157291
2 changed files with 11 additions and 15 deletions

View file

@ -52,13 +52,11 @@ struct _MwLLWaylandTopLevel {
struct _MwLLWayland {
struct _MwLLCommon common;
union {
struct _MwLLWaylandTopLevel* toplevel;
struct wl_subsurface* subsurface;
};
// data that's only loaded if it's a toplevel
struct _MwLLWaylandTopLevel* toplevel;
enum {
MWLL_WAYLAND_TOPLEVEL = 0,
MWLL_WAYLAND_SUBSURFACE = 1,
MWLL_WAYLAND_TOPLEVEL = 0,
MWLL_WAYLAND_SUBLEVEL = 1,
} type;
struct {
@ -90,8 +88,6 @@ struct _MwLLWayland {
MwU32 x, y, ww, wh;
MwPoint cur_mouse_pos;
int last_serial;
MwLL parent;
GLuint fbo;