Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to persist the app in background when "Close" button clicked? (minimal example) #38

Open
akamensky opened this issue Nov 23, 2017 · 3 comments
Labels
discussion This issue is a discussion possibly stale This may be stale

Comments

@akamensky
Copy link

This library is great and produces small enough output. However the existing README and examples do not provide clear explanation on whether there is an option to keep application running in background when app window has been closed.

For example Qt provides an option to override default behavior of this action. Also it offers option of not destroying window, but hiding it (the event loop still runs, the object can still manipulated, but window is not shown in desktop environment).

Would be good to know if this lib already has such functionality, or if not, if that can be easily implemented.

On a personal note -- I am considering migrating my app away from Qt (currently Qt/C++ statically linked against .a of Go code), but for my app (and many other apps I presume) this would be a requirement to have such option.

@zserge
Copy link
Collaborator

zserge commented Nov 24, 2017

Unfortunately, there is a lack of window-related APIs in the webview at the moment. To achieve what you want we need to support:

  • Custom window button handling (close, minimize, maximize, maybe resize as well)
  • APIs to minimize/restore/maximize/resize window

I think these are nice to have, but I haven't looked at how they can be implemented on all the platforms yet.

Any hints or better pull requests are welcome!

@zserge zserge added the discussion This issue is a discussion label Nov 27, 2017
@zswDev
Copy link

zswDev commented Jun 4, 2018

Using webview in goroutine, But never shut down

@senro
Copy link

senro commented Sep 29, 2018

Using webview in goroutine, But never shut down

how to do it?can you give me a example, thx very much!

@SteffenL SteffenL added the possibly stale This may be stale label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue is a discussion possibly stale This may be stale
Development

No branches or pull requests

5 participants