Skip to content

onWindowBlur stops functioning on main window after multi-window interaction #540

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

Open
Marrkkyyyyy opened this issue Apr 2, 2025 · 0 comments

Comments

@Marrkkyyyyy
Copy link

Marrkkyyyyy commented Apr 2, 2025

When implementing a tray-based application with multi-window support, the main window's onWindowBlur event handler stops functioning after the following sequence:

  1. Main window is active with working onWindowBlur

  2. Main window is hidden using windowManager.hide()

3.Multi-window is opened

  1. User closes multi-window

  2. User clicks tray icon to show main window again

  3. onWindowBlur no longer functions on the main window

Steps to Reproduce:

  1. Start application with main window

  2. Open settings/other window using multi-window, hide the main window first before showing the multi-window:
    static Future openWindow() async {
    await windowManager.hide();
    final window = await DesktopMultiWindow.createWindow()
    }

  3. Close the multi-window

  4. Click tray icon to show main window

  5. Try to click outside the main window - onWindowBlur doesn't trigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant