summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-08-12 17:38:04 +0300
committerMarius Vlad <marius.vlad@collabora.com>2022-09-14 16:35:03 +0000
commite1b15f95e834ac4eeb16edd1291088d4c45a587a (patch)
tree9f37819063bc4c5efe79ed00a5062b69686090fb
parentbb79d12c92fa6e860319c4c730d4c5c9e23932a2 (diff)
desktop: Install a black background for REMOTE roles
A while back we added the ability to install a black curtain if there no applications running. This way it provides a visual cue and it signifies that the applications is no longer running. While the idea was to install a remote black background for the REMOTE role, it turns out this would only happened if we were using the Waltham output type, which is excluding the REMOTE role. Adds an explicit check for Waltham to still allow for cases where just the REMOTE role is used. Bug-AGL: SPEC-4520 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I42951faa7cfb6932fa0e42e75f79245a82181f06
-rw-r--r--src/desktop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/desktop.c b/src/desktop.c
index c5981a7..36fe6f2 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -324,10 +324,8 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata)
/* check if there's a last 'remote' surface and insert a black
* surface view if there's no background set for that output
*/
- if ((desktop_surface_check_last_remote_surfaces(output->ivi,
- IVI_SURFACE_ROLE_REMOTE) ||
- desktop_surface_check_last_remote_surfaces(output->ivi,
- IVI_SURFACE_ROLE_DESKTOP)) && output->type == OUTPUT_REMOTE)
+ if (desktop_surface_check_last_remote_surfaces(output->ivi, IVI_SURFACE_ROLE_REMOTE) ||
+ desktop_surface_check_last_remote_surfaces(output->ivi, IVI_SURFACE_ROLE_DESKTOP))
if (!output->background)
insert_black_surface(output);