forked from pyrite-dev/milsko
wayland: pointer listener
This commit is contained in:
parent
7836b0abcd
commit
6433322cda
3 changed files with 104 additions and 25 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue