OSDN Git Service

Bring visible windows to the front when uri_open::open is emitted.
[fukui-no-namari/dialektos.git] / src / uri_opener.cxx
index def40bc..ba105c2 100644 (file)
@@ -38,8 +38,10 @@ bool open(const std::string& uri) {
   if (!bbs.get())
     return false;
 
-  if (dialektos::ApplicationWindow::is_opened(*bbs))
+  if (ApplicationWindow* window = dialektos::ApplicationWindow::find(*bbs)) {
+    window->present();
     return true;
+  }
 
   if (bbs->is_thread()) {
     dialektos::ThreadWindow::create(bbs);