RustDesk/flutter/lib
lukecgg c403cd8440 Gate multi-edge docking behind a settings toggle; default = horizontal slide
Replaces the activation-zone approach with an explicit opt-in setting
in Settings -> Other ("Allow docking remote toolbar to any window
edge"). This addresses the concern that a low-intent horizontal drag
shouldn't be able to trigger a high-impact orientation change, while
still letting users who want multi-edge docking opt in cleanly.

Default (toggle off):
  - The original horizontal slide is preserved.
  - The bug fix from the first commit still applies: dragging the
    handle moves the whole toolbar, and the position persists across
    collapse/expand (no more re-center on re-open).
  - Draggable is axis-locked to horizontal so the feedback widget
    stays on the top line during drag.

Opt-in (toggle on):
  - Full nearest-edge wins with the live preview ghost and corner
    hysteresis; toolbar reflows vertically on left/right docks.
  - Draggable is unlocked for 2D drag.

Reads the option via mainGetLocalBoolOptionSync so the toolbar's
default state matches what the settings checkbox shows; the option
key uses the allow- prefix so unset defaults to off.

Takes effect on next session (setting is read at session init).

The setting key (allow-multi-edge-toolbar-dock) is read by the
existing local-options machinery and persists per-install without
needing to be registered in libs/hbb_common's KEYS_LOCAL_SETTINGS.
Can add that registration in a parallel hbb_common PR if preferred.
2026-05-18 10:15:22 +10:00
..
common Allow macOS monitor switching in privacy mode (#15004) 2026-05-11 12:58:49 +08:00
desktop Gate multi-edge docking behind a settings toggle; default = horizontal slide 2026-05-18 10:15:22 +10:00
mobile Revert "fix web break introduced in 38f130071 fix(linux): enable mouse side buttons in remote sessions (#14848)" (#14973) 2026-05-06 20:20:17 +08:00
models fix(fs): file transfer, reconnect, restore dir (#14925) 2026-05-10 10:08:29 +08:00
native fix: web, reset cursor on disconn, back to main page (#9192) 2024-08-27 23:58:04 +08:00
plugin refact: optimize, ID search peers (#10853) 2025-02-20 18:31:12 +08:00
utils feat: Add relative mouse mode (#13928) 2026-01-09 10:03:14 +08:00
web Revert "fix web break introduced in 38f130071 fix(linux): enable mouse side buttons in remote sessions (#14848)" (#14973) 2026-05-06 20:20:17 +08:00
common.dart Terminal utf8 and reconnect (#14895) 2026-05-07 13:27:13 +08:00
consts.dart Gate multi-edge docking behind a settings toggle; default = horizontal slide 2026-05-18 10:15:22 +10:00
main.dart feat: advanced option, main window, always on top (#12731) 2025-08-26 00:15:55 +08:00