RustDesk/flutter/lib/desktop/widgets
julian 2061db10fc fix(linux): guard window queries during close to prevent SIGSEGV
When a RustDesk window is closing on Linux, the window_manager plugin's
get_window() can return null during widget destruction. The Flutter code
called saveWindowPosition/saveFrameState without checking if the window
was still valid, causing SIGSEGV crashes.

Changes:
- Guard saveWindowPosition() and saveFrameState() calls during close
- Add null checks before window geometry queries in tabbar_widget.dart
- Wrap common.dart window operations with validity checks

Companion PR: rustdesk-org/window_manager fix/linux-nullptr-guards-sigsegv
  — adds C++ nullptr guards in the plugin that this Flutter code depends on.
  Both PRs are needed together to fully resolve the SIGSEGV crashes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-01 07:00:36 +08:00
..
button.dart add auto-size-text for installCard button 2022-10-24 15:58:24 +08:00
dragable_divider.dart remove stupid group, bad implementation, buggy, and not usable 2023-06-23 17:05:48 +08:00
kb_layout_type_chooser.dart feat: web v2 keyboard (#9175) 2024-08-26 12:13:11 +08:00
list_search_action_listener.dart feat: make file manager draggable 2023-02-24 15:57:22 +08:00
material_mod_popup_menu.dart try out 3.22.2 2024-06-21 12:33:24 +08:00
menu_button.dart file rename (#9089) 2024-08-16 12:55:58 +08:00
popup_menu.dart refact: init values from initState to Constractor (#8817) 2024-07-25 10:45:51 +08:00
refresh_wrapper.dart fix: synchronize macOS window theme on flutter theme changed. 2023-02-02 13:57:40 +08:00
remote_toolbar.dart feat(wayland): keyboard mode, legacy translate (#14317) 2026-02-15 16:43:21 +08:00
tabbar_widget.dart fix(linux): guard window queries during close to prevent SIGSEGV 2026-05-01 07:00:36 +08:00
titlebar_widget.dart showTitle default to false, change titlebar logo 2023-02-10 15:05:35 +08:00
update_progress.dart refact: macos, update, preparing for installation (#12581) 2025-08-08 14:25:22 +08:00