aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/BrowserApp.cpp')
-rw-r--r--src/widgets/BrowserApp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/BrowserApp.cpp b/src/widgets/BrowserApp.cpp
index 49054b8..d096f01 100644
--- a/src/widgets/BrowserApp.cpp
+++ b/src/widgets/BrowserApp.cpp
@@ -6,6 +6,7 @@
#include "LuaRuntime.hpp"
#include "WindowActionRouter.hpp"
#include "events/NotificationReceivedEvent.hpp"
+#include "events/WinCreatedEvent.hpp"
#include "widgets/BrowserWindow.hpp"
#include "widgets/BrowserApp.hpp"
@@ -59,6 +60,10 @@ BrowserWindow *BrowserApp::create_window(const QStringList &urls) {
WindowActionRouter::instance().add_window(window);
window->show();
+
+ auto *event = new WinCreatedEvent(window->get_id());
+ WindowActionRouter::instance().dispatch_event(event);
+
return window;
}