Commit Graph

5 Commits

Author SHA1 Message Date
Jonathan Gilbert
2d1c94f1ef Fix window positioning on Windows when the taskbar is on the top or left (#12933)
* Added win32_desktop.cpp/.h defining a method Win32Desktop::GetWorkArea.
Added code to wWinMain in main.cpp to position the window relative to the work area, which may not be at (0, 0) depending on the user's configuration.

* Corrected the constraint on the size value calculated by main.cpp.

* Fixed references to min to use std::min.

* Reworked GetWorkArea in win32_desktop.cpp to treat the supplied origin and size as containing an existing window rectangle, and to find the monitor that contains or is closest to that window.
Added function FitToWorkArea to win32_desktop.cpp/.h.
Updated main.cpp to use Win32Desktop::FitToWorkArea instead of explicitly constraining the size.
2025-09-19 16:11:26 +08:00
rustdesk
b07ac438f5 working on windows service install/uninstall 2023-06-05 20:27:48 +08:00
Kingtous
74201b71b4 opt: windows build type & use generator expression 2022-09-12 18:37:09 +08:00
SoLongAndThanksForAllThePizza
52d4b4226e fix flutter compile on windows 2022-05-25 20:26:46 +08:00
csf
beb11bd31c flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00