From 62a4a601c2c05a1e4845d0c87bcf540a58d112ee Mon Sep 17 00:00:00 2001 From: liwei90727 Date: Tue, 10 Oct 2023 17:44:34 +0800 Subject: [PATCH] Move last window to top when original window close App call window.open() to create more window, we will show last window, but if we call show(), visibility_status_ is true, then WRTNativeWindow:Show() will return directly, so use MoveTop() instead, then app focus will be set again, it's necessary in Aura window. Native Side: https://review.tizen.org/gerrit/299800/ Change-Id: I2f9dac220beadd501e895f65ba6cae36c956ccca Signed-off-by: liwei90727 --- wrt_app/src/web_application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 54e4aa35..2d1b72c6 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -72,7 +72,7 @@ export class WebApplication { this.windowList.splice(index, 1); if (!this.inQuit && index === this.windowList.length && this.windowList.length > 0) { let lastWindow = this.windowList[this.windowList.length - 1]; - lastWindow.show(); + lastWindow.moveTop(); this.profileDelegate.focus(lastWindow.webContents); } }); -- 2.34.1