RustDesk/flutter/lib/desktop/widgets
Jonathan Gilbert 246b5b93f8
Centralize debounce of save window pos and save window pos on close (#12987)
* Added method equals to class LastWindowPosition to compare the contents of instances.
Added storage to common.dart for remembering what window position data has previously been written.
Factored the actual save code from saveWindowPosition to _saveWindowPositionActual and updated saveWindowPosition to call it through a debouncer, and only if the window position data has actually changed since the last call in the same instance.
Added named parameter 'flush' to saveWindowPosition in common.dart, and to _saveFrame in tabbar_widget.dart, and updated the onWindowClosed handler in tabbar_widget.dart to call _saveFrame with flush: true, forcing an immediate save on close.
Removed the _saveFrame debouncer from tabbar_widget.dart.

* saveWindowPosition: don't reschedule debounce if it's already in flight

* Reworked the logic in saveWindowPosition to collapse a rapid series of updates into one save at the end.
2025-10-11 16:11:56 +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(ui): custom scale mode with inline controls and live apply (#13045) 2025-10-08 14:40:20 +08:00
tabbar_widget.dart Centralize debounce of save window pos and save window pos on close (#12987) 2025-10-11 16:11:56 +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