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

@ -27,7 +27,7 @@ struct dwl_input_method_relay {
};
struct dwl_input_method_popup {
uint32_t type;
uint32_t type; // must at first in struct
struct wlr_input_popup_surface_v2 *popup_surface;
struct wlr_scene_tree *tree;
struct wlr_scene_tree *scene_surface;