Unfinished Wayland PR #1
1 changed files with 7 additions and 6 deletions
we don't need timed_redraw for resizing anymoreg
commit
c796ed617d
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue