diff options
| author | Rudra Saraswat <rs2009@ubuntu.com> | 2022-09-03 13:52:53 +0530 |
|---|---|---|
| committer | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2022-09-13 16:59:53 +0200 |
| commit | 060c4834a0a1e8129a1bb42ccbd54704e63f8db7 (patch) | |
| tree | 8bdb1f4d6bd5dca05fbcb5f51a2e5adb97645918 | |
| parent | 4bdbbd661bebcad4cdbb916e0892aa71e680f4ab (diff) | |
create Monitor in StandaloneLauncher
| -rw-r--r-- | dash/DashView.cpp | 2 | ||||
| -rw-r--r-- | launcher/StandaloneLauncher.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/dash/DashView.cpp b/dash/DashView.cpp index e7c516c30..dc4e1b2d8 100644 --- a/dash/DashView.cpp +++ b/dash/DashView.cpp @@ -1420,7 +1420,7 @@ bool DashView::DoFallbackActivation(std::string const& uri) return application_starter_->Launch(appname, last_activated_timestamp_); } else - return gtk_show_uri(NULL, uri.c_str(), last_activated_timestamp_, NULL); + return gtk_show_uri_on_window(NULL, uri.c_str(), last_activated_timestamp_, NULL); return false; } diff --git a/launcher/StandaloneLauncher.cpp b/launcher/StandaloneLauncher.cpp index 3c4493924..0af7d0c1b 100644 --- a/launcher/StandaloneLauncher.cpp +++ b/launcher/StandaloneLauncher.cpp @@ -30,6 +30,7 @@ #include "LauncherController.h" #include "Launcher.h" #include "unity-shared/IconRenderer.h" +#include "unity-shared/InputMonitor.h" #include "unity-shared/PanelStyle.h" #include "unity-shared/UBusMessages.h" #include "unity-shared/UnitySettings.h" @@ -72,6 +73,8 @@ private: void Init() { + input::Monitor im_; + SetupBackground(); controller.reset(new launcher::Controller(std::make_shared<StandaloneDndManager>(), std::make_shared<ui::EdgeBarrierController>())); |
