add wlroots as a submodule for reference

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-29 20:47:59 +03:00
parent 159bd314e5
commit 22c005999c
5 changed files with 137 additions and 3 deletions

View File

@@ -329,12 +329,22 @@ void LunarWM_render_windows(LunarWM *this, bool alpha_check)
continue;
}
if (tl->gles_texture) {
if (alpha_check && tl->gles_texture->has_alpha) {
if (alpha_check && tl->composed_has_alpha) {
continue;
}
Texture2D tex = tl->rl_texture;
bool y_flip = false;
if (IsRenderTextureValid(tl->surface_rt)) {
tex = tl->surface_rt.texture;
tex.width = tl->rl_texture.width;
tex.height = tl->rl_texture.height;
y_flip = true;
}
if (!tex.id)
continue;
float rad = window->coord.r - 0.01f * (float)i;
DrawTextureCyl2(tl->rl_texture, Vector3Zero(), window->coord, rad,
this->cman->cfg.space.window_scale, false);
DrawTextureCyl2(tex, Vector3Zero(), window->coord, rad,
this->cman->cfg.space.window_scale, y_flip);
}
}
}