Unfinished Wayland PR #1

Merged
IoI_xD merged 55 commits from IoI_xD/milsko:wayland into master 2025-12-10 11:11:02 +09:00
Showing only changes of commit c796ed617d - Show all commits

we don't need timed_redraw for resizing anymoreg

IoIxD 2025-12-08 15:33:57 -07:00

View file

@ -18,8 +18,6 @@
#endif #endif
/* /*
callback todo: callback todo:
void (*up)(MwLL handle, void* data);
void (*down)(MwLL handle, void* data);
void (*key)(MwLL handle, void* data); void (*key)(MwLL handle, void* data);
void (*key_released)(MwLL handle, void* data); void (*key_released)(MwLL handle, void* data);
void (*focus_in)(MwLL handle, void* data); void (*focus_in)(MwLL handle, void* data);
@ -92,8 +90,7 @@ static void pointer_button(void* data, struct wl_pointer* wl_pointer, MwU32 seri
break; break;
} }
} }
MwLLDispatch(self, draw, NULL);
timed_redraw(self, time, 50, &self->wayland.cooldown_timer);
}; };
static void pointer_axis(void* data, struct wl_pointer* wl_pointer, MwU32 time, static void pointer_axis(void* data, struct wl_pointer* wl_pointer, MwU32 time,
MwU32 axis, wl_fixed_t value) {}; MwU32 axis, wl_fixed_t value) {};
@ -533,7 +530,9 @@ static void setup_toplevel(MwLL r, int x, int y) {
r->wayland.event_queue = wl_display_create_queue(r->wayland.display); r->wayland.event_queue = wl_display_create_queue(r->wayland.display);
MwLLForceRender(r); egl_resetup(r);
MwLLDispatch(r, draw, NULL);
recursive_draw(r);
// buffer_setup(&r->wayland); // buffer_setup(&r->wayland);
@ -587,7 +586,9 @@ static void setup_sublevel(MwLL parent, MwLL r, int x, int y) {
r->wayland.configured = MwTRUE; r->wayland.configured = MwTRUE;
if(!r->wayland.egl_setup) { if(!r->wayland.egl_setup) {
r->wayland.egl_setup = egl_setup(r, r->wayland.ww, r->wayland.wh); r->wayland.egl_setup = egl_setup(r, r->wayland.ww, r->wayland.wh);
MwLLForceRender(r); egl_resetup(r);
MwLLDispatch(r, draw, NULL);
recursive_draw(r);
}; };
r->wayland.event_queue = parent->wayland.event_queue; r->wayland.event_queue = parent->wayland.event_queue;