wayland: properly pump the events system, only drawing when necessary

This commit is contained in:
IoIxD 2025-12-08 15:28:20 -07:00
commit df43752fa7
2 changed files with 100 additions and 45 deletions

View file

@ -76,18 +76,25 @@ struct _MwLLWayland {
struct wl_surface* surface;
struct wl_shm* shm;
struct wl_registry_listener registry_listener;
struct wl_event_queue* event_queue;
struct wl_pointer* pointer;
MwLL* subwidgets;
MwBool configured;
MwBool force_redraw;
MwBool configured;
MwBool force_redraw;
MwBool egl_setup;
MwBool egl_do_resetup;
MwBool has_set_xy;
MwU32 x, y, ww, wh;
MwPoint cur_mouse_pos;
struct timeval timer;
MwU64 cooldown_timer;
MwU64 cooldown_timer_epoch;
MwLL parent;
GLuint fbo;
@ -107,6 +114,7 @@ struct _MwLLWaylandColor {
struct _MwLLWaylandPixmap {
struct _MwLLCommonPixmap common;
GLuint texture;
MwBool texture_deleted;
};
#endif