When a second display is connected (macOS), presenting now opens a borderless audience window on the beamer showing the slide, while the main window shows the presenter view (current/next slide, speaker notes, clock, controls) on the laptop. The two windows stay in sync over method channels: navigation, blank screen, audio-complete and beamer clicks are forwarded between them, and media plays only on the beamer to avoid double audio. Falls back to the existing single-window presenter when there is one display or the second window can't be created. - Vendors a fork of desktop_multi_window in third_party/ that re-adds the native macOS window geometry/fullscreen calls (coverScreen, setFrame, close) the published 0.3.0 dropped; wired via a path dependency. - Registers the app's plugins for sub-windows in MainFlutterWindow so video/image rendering works on the beamer. - Routes the multi_window dart entrypoint to a minimal AudienceWindowApp. Compiles (flutter analyze + macOS debug build) and all tests pass; runtime two-screen behaviour still needs verification on real hardware. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
1,014 B
CMake
29 lines
1,014 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
set(PROJECT_NAME "desktop_multi_window")
|
|
project(${PROJECT_NAME} LANGUAGES CXX)
|
|
|
|
# This value is used when generating builds using this plugin, so it must
|
|
# not be changed
|
|
set(PLUGIN_NAME "desktop_multi_window_plugin")
|
|
|
|
add_library(${PLUGIN_NAME} SHARED
|
|
"desktop_multi_window_plugin.cpp"
|
|
"multi_window_manager.cc"
|
|
"flutter_window.cc"
|
|
"window_channel_plugin.cc"
|
|
"win32_window.cpp"
|
|
)
|
|
apply_standard_settings(${PLUGIN_NAME})
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
|
CXX_VISIBILITY_PRESET hidden)
|
|
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
|
|
target_include_directories(${PLUGIN_NAME} INTERFACE
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin flutter_wrapper_app)
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE "dwmapi.lib")
|
|
|
|
# List of absolute paths to libraries that should be bundled with the plugin
|
|
set(desktop_multi_window_bundled_libraries
|
|
""
|
|
PARENT_SCOPE
|
|
)
|