aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserApp.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-25 20:27:44 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-25 20:28:05 +0530
commit81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7 (patch)
treeaa24bcea93d19ce6298ad6aed499d324fac2ceae /src/widgets/BrowserApp.cpp
parent2c7d36b4aa53ffa638a7aa7046767f10e7a152bf (diff)
downloadnull-browser-81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7.tar.gz
null-browser-81dcf7de91c1866d565f7aa9eb38f7fbd1cd7ad7.zip
Add decoration is_enabled api + allowed specifying win_id for enabled
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;
}