Move last window to top when original window close 43/303443/1
authorliwei90727 <wei90727.li@samsung.com>
Tue, 10 Oct 2023 09:44:34 +0000 (17:44 +0800)
committerSangYong Park <sy302.park@samsung.com>
Thu, 28 Dec 2023 02:09:58 +0000 (11:09 +0900)
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 <wei90727.li@samsung.com>
wrt_app/src/web_application.ts

index 402bb9708706c9d636b7116f303204d8ae39f926..3c8d7991bae4ed09f546d96ab24feb48c791af28 100644 (file)
@@ -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);
         }
       });