opt: add common for struct type

It must be placed first; otherwise, after the xytonode's null pointer is
forcibly converted, the reading type will encounter an incorrect address
This commit is contained in:
DreamMaoMao 2026-06-22 14:31:43 +08:00
parent b8ca3a3c34
commit 95b0724cff
3 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,7 @@ typedef struct {
} MangoJumpLabel;
typedef struct {
uint32_t type;
uint32_t type; // must at first in struct
struct wlr_scene_buffer *scene_buffer;
struct mango_text_buffer *buffer;
cairo_surface_t *surface;