コード例 #1
0
ファイル: classicui.c プロジェクト: pkg-ime/fcitx
void ClassicUISuspend(void* arg)
{
    FcitxClassicUI* classicui = (FcitxClassicUI*) arg;
    classicui->isSuspend = true;
    CloseInputWindowInternal(classicui->inputWindow);
    CloseMainWindow(classicui->mainWindow);
    ReleaseTrayWindow(classicui->trayWindow);
}
コード例 #2
0
ファイル: client_handler.cpp プロジェクト: Archlizz/javacef
bool ClientHandler::DoClose(CefRefPtr<CefBrowser> browser) {
  REQUIRE_UI_THREAD();

  if (m_BrowserId == browser->GetIdentifier()) {
    // Since the main window contains the browser window, we need to close
    // the parent window instead of the browser window.
    CloseMainWindow();

    // Return true here so that we can skip closing the browser window
    // in this pass. (It will be destroyed due to the call to close
    // the parent above.)
    return true;
  }

  // A popup browser window is not contained in another window, so we can let
  // these windows close by themselves.
  return false;
}