From 6e97595d953811fe3f5877e13022c3b5d3b070a6 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Fri, 24 Nov 2023 16:08:03 +0800 Subject: feat: somewhere to place extra actions by platform I have view iced-sckt forked iced, and add the extra actions. and there do are some extra actions, like set margin for layer-shell, set lock for ext-session-shell. I think add an any will be of help maybe --- winit/src/application.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'winit') diff --git a/winit/src/application.rs b/winit/src/application.rs index 21a985e8..e44b3ca5 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -861,6 +861,7 @@ pub fn run_command( .send_event(tagger(Ok(()))) .expect("Send message to event loop"); } + command::Action::PlatformSpecific(_) => unimplemented!(), } } } -- cgit From 26569069038d60c05e935c45d34cc5c8099c798f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 3 Feb 2024 15:10:45 +0100 Subject: Rename `PlateformSpecific` variant in `Action` to `Custom` --- winit/src/application.rs | 4 +++- winit/src/multi_window.rs | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'winit') diff --git a/winit/src/application.rs b/winit/src/application.rs index e44b3ca5..24c98d46 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -861,7 +861,9 @@ pub fn run_command( .send_event(tagger(Ok(()))) .expect("Send message to event loop"); } - command::Action::PlatformSpecific(_) => unimplemented!(), + command::Action::Custom(_) => { + log::warn!("Unsupported custom action in `iced_winit` shell"); + } } } } diff --git a/winit/src/multi_window.rs b/winit/src/multi_window.rs index 1c45ce37..662adf5b 100644 --- a/winit/src/multi_window.rs +++ b/winit/src/multi_window.rs @@ -1127,6 +1127,9 @@ fn run_command( .send_event(tagger(Ok(()))) .expect("Send message to event loop"); } + command::Action::Custom(_) => { + log::warn!("Unsupported custom action in `iced_winit` shell"); + } } } } -- cgit