wayland: gl improvements
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
b9933b70e2
commit
5e823b5a25
2 changed files with 3 additions and 4 deletions
|
|
@ -441,13 +441,13 @@ static void pointer_motion(void* data, struct wl_pointer* wl_pointer, MwU32 time
|
||||||
MwLL topmost = self->wayland.parent;
|
MwLL topmost = self->wayland.parent;
|
||||||
while(topmost->wayland.parent) topmost = topmost->wayland.parent;
|
while(topmost->wayland.parent) topmost = topmost->wayland.parent;
|
||||||
/* also we only wanna do it every 50ms */
|
/* also we only wanna do it every 50ms */
|
||||||
if((self->wayland.last_time + 50) <= time && !topmost->wayland.events_pending) {
|
if((self->wayland.last_time + 50) <= time && !topmost->wayland.events_pending && !topmost->wayland.always_render) {
|
||||||
MwLLDispatch(self, draw, NULL);
|
MwLLDispatch(self, draw, NULL);
|
||||||
self->wayland.last_time = time;
|
self->wayland.last_time = time;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* if there's no parent just impose the requirement on the widget itself */
|
/* if there's no parent just impose the requirement on the widget itself */
|
||||||
if((self->wayland.last_time + 50) <= time && !self->wayland.events_pending) {
|
if((self->wayland.last_time + 50) <= time && !self->wayland.events_pending && !self->wayland.always_render) {
|
||||||
MwLLDispatch(self, draw, NULL);
|
MwLLDispatch(self, draw, NULL);
|
||||||
self->wayland.last_time = time;
|
self->wayland.last_time = time;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,11 +168,10 @@ static int create(MwWidget handle) {
|
||||||
waylandopengl_t* o = r = malloc(sizeof(*o));
|
waylandopengl_t* o = r = malloc(sizeof(*o));
|
||||||
MwLL topmost_parent = handle->lowlevel->wayland.parent;
|
MwLL topmost_parent = handle->lowlevel->wayland.parent;
|
||||||
handle->lowlevel->wayland.always_render = MwTRUE;
|
handle->lowlevel->wayland.always_render = MwTRUE;
|
||||||
topmost_parent->wayland.always_render = MwTRUE;
|
|
||||||
|
|
||||||
while(topmost_parent->wayland.parent != NULL) {
|
while(topmost_parent->wayland.parent != NULL) {
|
||||||
topmost_parent = topmost_parent->wayland.parent;
|
|
||||||
topmost_parent->wayland.always_render = MwTRUE;
|
topmost_parent->wayland.always_render = MwTRUE;
|
||||||
|
topmost_parent = topmost_parent->wayland.parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
display =
|
display =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue