-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] Window event is only received after user interaction #3654
Comments
I think I know why: the first event (after which the window shows itself) was bound to the hotkey |
Maybe related to #2543 |
I have a possibly related problem, but with a regular single window. My use case is to be able to use keyboard shortcuts after the app has started and the window is opened. However, this does not work until the said user interaction. The only interaction that enables the keyboard handling is the mouse click within the window. This problem seems to apply to the keyboard events not being propagated into the webview. Because using the regular browser keyboard events does not work, such as pressing Space key to scroll the page down. |
@alllex I'm aware of that one. Just in case, I'd say open a new issue and link back to this one |
I think I'm running into the same thing - currently only on Linux, but haven't tested MacOS yet. I have a window that's invisible until a network event comes in - it's supposed to pop up when that happens, show some progress, and then disappear. This is triggered by progress messages sent using |
I've done some digging - it looks like when this happens, the main thread is stuck in the gtk event loop:
The Edit: Reported to Tao |
Just noticing that the original bug is on Windows, so different from my issue - I haven't experienced the issue there, so haven't investigated, but the root cause could be similar. |
Describe the bug
Scenario: I have a transparent, hidden, always-on-top window. The backend sends an event to it, the window makes itself visible, so far so good. After some time, the backend sends another event to the window, but this event isn't received immediately, only after some user interaction with the window (a mouse click in my case suffices). Also, this is not 100% reproducible.
According to the backend logs, the event is sent when it should be, but the frontend only receives the event upon said user interaction (verified with timestamps). Here's how the listener is set up:
And, fwiw, here's how the window makes itself shown:
Reproduction
No response
Expected behavior
No response
Platform and versions
Operating System - Windows, version 10.0.19043 X64 Webview2 - 99.0.1150.30 Visual Studio Build Tools: - Visual Studio Build Tools 2019 Node.js environment Node.js - 16.13.2 @tauri-apps/cli - 1.0.0-rc.5 (outdated, latest: 1.0.0-rc.7) @tauri-apps/api - 1.0.0-rc.1 (outdated, latest: 1.0.0-rc.2) Global packages npm - 8.5.1 pnpm - Not installed yarn - Not installed Rust environment rustup - 1.24.3 rustc - 1.58.1 cargo - 1.58.0 toolchain - stable-x86_64-pc-windows-msvc App directory structure /.git /.github /build /installed /node_modules /opencv /public /src /src-tauri App tauri - 1.0.0-rc.3 tauri-build - 1.0.0-rc.3 tao - 0.6.2 wry - 0.13.2 build-type - bundle CSP - unset distDir - ../build devPath - http://localhost:3000/ framework - React
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: