RustDesk/flutter/windows/runner
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
..
resources new logo design 2023-02-07 21:04:50 +08:00
CMakeLists.txt Fix window positioning on Windows when the taskbar is on the top or left (#12933) 2025-09-19 16:11:26 +08:00
flutter_window.cpp add zero copy mode hareware codec for windows (#6778) 2024-01-02 16:58:10 +08:00
flutter_window.h flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00
main.cpp Fix window positioning on Windows when the taskbar is on the top or left (#12933) 2025-09-19 16:11:26 +08:00
resource.h flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00
runner.exe.manifest flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00
Runner.rc 2024 -> 2025 2025-01-31 16:54:57 +08:00
utils.cpp flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00
utils.h flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00
win32_desktop.cpp Fix window positioning on Windows when the taskbar is on the top or left (#12933) 2025-09-19 16:11:26 +08:00
win32_desktop.h Fix window positioning on Windows when the taskbar is on the top or left (#12933) 2025-09-19 16:11:26 +08:00
win32_window.cpp fix extracted forground window not foreground (#8521) 2024-06-28 22:36:29 +08:00
win32_window.h spelling: responds 2023-01-09 12:59:08 -05:00