Use shared text system on Linux and Windows (#10098)

closes #10129
closes #10269

Release Notes:

- N/A
This commit is contained in:
Ezekiel Warren 2024-04-09 17:25:16 -07:00 committed by GitHub
parent 8f69eac402
commit bfd9bb8a7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 481 deletions

View file

@ -57,7 +57,7 @@ pub(crate) struct WindowsPlatformInner {
background_executor: BackgroundExecutor,
pub(crate) foreground_executor: ForegroundExecutor,
main_receiver: flume::Receiver<Runnable>,
text_system: Arc<WindowsTextSystem>,
text_system: Arc<CosmicTextSystem>,
callbacks: Mutex<Callbacks>,
pub raw_window_handles: RwLock<SmallVec<[HWND; 4]>>,
pub(crate) dispatch_event: OwnedHandle,
@ -155,7 +155,7 @@ impl WindowsPlatform {
let dispatcher = Arc::new(WindowsDispatcher::new(main_sender, dispatch_event.to_raw()));
let background_executor = BackgroundExecutor::new(dispatcher.clone());
let foreground_executor = ForegroundExecutor::new(dispatcher);
let text_system = Arc::new(WindowsTextSystem::new());
let text_system = Arc::new(CosmicTextSystem::new());
let callbacks = Mutex::new(Callbacks::default());
let raw_window_handles = RwLock::new(SmallVec::new());
let settings = RefCell::new(WindowsPlatformSystemSettings::new());