summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/desktop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop.c b/src/desktop.c
index 7c6c19a..da28fc6 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -117,7 +117,7 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata)
return;
/* reset the active surface as well */
- if (output && output->active) {
+ if (output && output->active && output->active == surface) {
output->active->view->is_mapped = false;
output->active->view->surface->is_mapped = false;