aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@posteo.net>2021-10-06 10:53:02 +0300
committerSimon Ser <contact@emersion.fr>2021-10-06 10:15:49 +0200
commit28248dd83b5b50929fce625838cc4ea29c1e0c40 (patch)
treee6d62091b5d5cea13f87bce59c4fe450779a3799
parent31af2b67b09f091b14ed75eba0fd8ca1e97ca9bb (diff)
xdg-shell: remove redundant NULL buffer check
This is already checked in role precommit handler, and if the buffer is NULL due to failed upload, that means the surface was already unmapped.
-rw-r--r--types/xdg_shell/wlr_xdg_surface.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/types/xdg_shell/wlr_xdg_surface.c b/types/xdg_shell/wlr_xdg_surface.c
index 519dad52..c45baabb 100644
--- a/types/xdg_shell/wlr_xdg_surface.c
+++ b/types/xdg_shell/wlr_xdg_surface.c
@@ -336,10 +336,6 @@ void handle_xdg_surface_commit(struct wlr_surface *wlr_surface) {
surface->mapped = true;
wlr_signal_emit_safe(&surface->events.map, surface);
}
- if (surface->configured && !wlr_surface_has_buffer(surface->surface) &&
- surface->mapped) {
- unmap_xdg_surface(surface);
- }
}
void handle_xdg_surface_precommit(struct wlr_surface *wlr_surface) {