impl showimpl when we don't use subsurfaces anymore
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-09-26 18:16:15 -07:00
commit 59d9e3dc6e
2 changed files with 11 additions and 0 deletions

View file

@ -462,6 +462,8 @@ struct _MwLLWayland {
long end_time;
MwBool accepts_dnd;
MwBool shown;
};
struct _MwLLWaylandColor {

View file

@ -1001,6 +1001,10 @@ static void draw_child(MwLL handle, MwLL child) {
wl_surface_commit(child->wayland.framebuffer.surface);
if(!child->wayland.shown) {
return;
}
cs = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, child->wayland.ww, child->wayland.wh);
c = cairo_create(cs);
@ -1056,6 +1060,9 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
r->wayland.is_toplevel = parent == NULL;
r->wayland.is_clipping = 0;
/* notably not in widget setup, if a user detaches a widget or whatever it should keep this state */
r->wayland.shown = MwTRUE;
widget_setup(r, parent, x, y, width, height, MwLL_WAYLAND_UNKNOWN);
#ifdef USE_DBUS
@ -1723,6 +1730,8 @@ static void MwLLDetachImpl(MwLL handle, MwPoint* point) {
}
static void MwLLShowImpl(MwLL handle, int show) {
handle->wayland.shown = show;
if(!handle->wayland.configured) {
return;
}