We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Linux (X11), when a window is minimized and another window is clicked afterward, the original window fails to restore with windowManager.restore().
windowManager.restore().
The window should restore from minimization, regardless of whether another window was clicked during the minimization.
The window does not restore if another window is clicked during the minimization.
import 'dart:async'; import 'package:flutter/material.dart'; import 'package:window_manager/window_manager.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); await windowManager.ensureInitialized(); WindowOptions windowOptions = const WindowOptions( title: "Window Controller", size: Size(600, 400), center: true, ); await windowManager.waitUntilReadyToShow(windowOptions, () async { await windowManager.show(); await windowManager.focus(); }); runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar(title: const Text('Window Controller')), body: Center( child: ElevatedButton( onPressed: () { windowManager.minimize(); Timer(const Duration(seconds: 3), () => windowManager.restore()); }, child: const Text('Minimize & Restore'), ), ), ), ); } }
If no other window is clicked during the minimization, the window restores correctly after 3 seconds.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
On Linux (X11), when a window is minimized and another window is clicked afterward, the original window fails to restore with
windowManager.restore().
Steps to Reproduce:
Expected Behavior:
The window should restore from minimization, regardless of whether another window was clicked during the minimization.
Actual Behavior:
The window does not restore if another window is clicked during the minimization.
Minimal Reproducible Code:
System Information:
Additional Notes:
If no other window is clicked during the minimization, the window restores correctly after 3 seconds.
The text was updated successfully, but these errors were encountered: