Move last window to top when original window close 98/299798/2
authorliwei90727 <wei90727.li@samsung.com>
Tue, 10 Oct 2023 09:44:34 +0000 (17:44 +0800)
committerwei li <wei90727.li@samsung.com>
Wed, 11 Oct 2023 03:28:33 +0000 (03:28 +0000)
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 54e4aa35681e1b07e883e727e05cc4b9fd378dff..2d1b72c6bf584aa26e2dde8291f455fc3476bab8 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);
         }
       });