webview / webview

Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
MIT License
12.53k stars 940 forks source link

Don't work "command + q" on MacOS and freeze when close #616

Open paulocoutinhox opened 2 years ago

paulocoutinhox commented 2 years ago

What OS are you using (uname -a, or Windows version)?

macos bigsur

What programming language are you using (C/C++/Go/Rust)?

clang 13 xcode 13 c++

What did you expect to see and what you saw instead?

When press command + q need kill app, but it do nothing today.

And when i close on red button (close button), it freeze and dont close the app.

nicklasfrahm commented 2 years ago

@paulo-coutinho could you provide a simple example, so we can reproduce this issue?

thewebdev commented 2 years ago

Platform macOS Mojave 10.14.6, Apple clang version 11.0.0 (clang-1100.0.33.17), Target: x86_64-apple-darwin18.7.0

I compiled and ran webview_c and can confirm that command + q (which is used to close and exit a GUI program on macOS) does nothing to the webview window. However, the webview window doesn't "freeze" for me - I am still able to close the webview window by clicking the red close button in the title bar of the window without any issue.

jakenvac commented 1 year ago

command + q to close still doesn't work on macos, however I don't experience any freezing or crashes. The window can still close fine with the title bar.

I've tried Deno, Go & my own swift bindings. I don't think there's really any need for a source example as the bare minumim new Webview().run() or the language equivalent is enough to observe the issue.

More than happy to assist further but C is not my strong point in the slightest.