homescreenhandler: Fix activation on the default use-case 97/29597/1
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 15 Jan 2024 13:29:24 +0000 (15:29 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 15 Jan 2024 16:34:44 +0000 (18:34 +0200)
We seem to be missing one of the branches that searches for a pending
output to activate. This is only been seen when setting the application
from the start to a different output.

Anotehr oversight from gRPC proxy changes.

Fixes AglShellGrpcClient: Activate windows with gRPC

Bug-AGL: SPEC-5048
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I138b47915f5a532c8f7321f04b5e9daa7a63de64

homescreen/src/homescreenhandler.cpp

index d81e22f..9fd439d 100644 (file)
@@ -146,6 +146,8 @@ void HomescreenHandler::activateApp(const QString& app_id)
                                  new_remote_output.c_str(),
                                  app_id.toStdString().c_str());
                        default_output_name = new_remote_output;
+               } else {
+                       default_output_name = output_name.toStdString();
                }
 
                pending_app_list.erase(iter);