mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
rootston: remove unmapped surface from desktop
This commit is contained in:
parent
083fe4506b
commit
4d6b3618b8
2 changed files with 4 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ static void rotate_child_position(double *sx, double *sy, double sw, double sh,
|
|||
static void render_surface(struct wlr_surface *surface,
|
||||
struct roots_desktop *desktop, struct wlr_output *wlr_output,
|
||||
struct timespec *when, double lx, double ly, float rotation) {
|
||||
if (surface->texture->valid) {
|
||||
if (wlr_surface_has_buffer(surface)) {
|
||||
int width = surface->current->width;
|
||||
int height = surface->current->height;
|
||||
int render_width = width * wlr_output->scale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue