wayland: pointer listener

This commit is contained in:
IoIxD 2025-12-07 17:25:16 -07:00
commit 6433322cda
3 changed files with 104 additions and 25 deletions

View file

@ -14,6 +14,10 @@ static void lldrawhandler(MwLL handle, void* data) {
MwDispatch(h, draw);
if(h->draw_inject != NULL) h->draw_inject(h);
MwDispatchUserHandler(h, MwNdrawHandler, NULL);
if(handle->wayland.parent == NULL) {
MwLLEndDraw(handle);
}
}
static void lluphandler(MwLL handle, void* data) {
@ -332,7 +336,6 @@ void MwLoop(MwWidget handle) {
while(MwPending(handle)) {
if((v = MwStep(handle)) != 0) break;
}
MwLLEndDraw(handle->lowlevel);
if(v != 0) break;
for(i = 0; i < arrlen(handle->tick_list); i++) {