Compare commits
2 commits
69c95d5752
...
d340c64ca3
| Author | SHA1 | Date | |
|---|---|---|---|
| d340c64ca3 | |||
| 14e55b7f53 |
1 changed files with 4 additions and 9 deletions
|
|
@ -1404,8 +1404,6 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
||||||
setup_toplevel(r, x, y);
|
setup_toplevel(r, x, y);
|
||||||
} else {
|
} else {
|
||||||
setup_sublevel(parent, r, x, y);
|
setup_sublevel(parent, r, x, y);
|
||||||
MwLLDispatch(parent, draw, NULL);
|
|
||||||
parent->wayland.events_pending += 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
framebuffer_setup(&r->wayland);
|
framebuffer_setup(&r->wayland);
|
||||||
|
|
@ -1414,6 +1412,9 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
||||||
region_setup(r);
|
region_setup(r);
|
||||||
|
|
||||||
MwLLForceRender(r);
|
MwLLForceRender(r);
|
||||||
|
if(parent != NULL) {
|
||||||
|
MwLLForceRender(parent);
|
||||||
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
@ -1504,10 +1505,6 @@ static void MwLLSetXYImpl(MwLL handle, int x, int y) {
|
||||||
|
|
||||||
MwLLDispatch(handle, draw, NULL);
|
MwLLDispatch(handle, draw, NULL);
|
||||||
handle->wayland.events_pending += 1;
|
handle->wayland.events_pending += 1;
|
||||||
if(handle->wayland.parent != NULL) {
|
|
||||||
MwLLDispatch(handle->wayland.parent, draw, NULL);
|
|
||||||
handle->wayland.parent->wayland.events_pending += 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MwLLSetWHImpl(MwLL handle, int w, int h) {
|
static void MwLLSetWHImpl(MwLL handle, int w, int h) {
|
||||||
|
|
@ -1531,9 +1528,7 @@ refresh:
|
||||||
|
|
||||||
framebuffer_destroy(&handle->wayland);
|
framebuffer_destroy(&handle->wayland);
|
||||||
framebuffer_setup(&handle->wayland);
|
framebuffer_setup(&handle->wayland);
|
||||||
if(handle->wayland.parent != NULL) {
|
MwLLDispatch(handle, draw, NULL);
|
||||||
MwLLDispatch(handle->wayland.parent, draw, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) {
|
static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue