@@ -399,6 +399,7 @@ enum WindowMessage {
399399 OuterSize ( Sender < PhysicalSize < u32 > > ) ,
400400 IsFullscreen ( Sender < bool > ) ,
401401 IsMaximized ( Sender < bool > ) ,
402+ IsDecorated ( Sender < bool > ) ,
402403 CurrentMonitor ( Sender < Option < MonitorHandle > > ) ,
403404 PrimaryMonitor ( Sender < Option < MonitorHandle > > ) ,
404405 AvailableMonitors ( Sender < Vec < MonitorHandle > > ) ,
@@ -531,6 +532,11 @@ impl Dispatch for WryDispatcher {
531532 Ok ( dispatcher_getter ! ( self , WindowMessage :: IsMaximized ) )
532533 }
533534
535+ /// Gets the window’s current decoration state.
536+ fn is_decorated ( & self ) -> Result < bool > {
537+ Ok ( dispatcher_getter ! ( self , WindowMessage :: IsDecorated ) )
538+ }
539+
534540 fn current_monitor ( & self ) -> Result < Option < Monitor > > {
535541 Ok (
536542 dispatcher_getter ! ( self , WindowMessage :: CurrentMonitor )
@@ -1133,6 +1139,7 @@ fn handle_event_loop(
11331139 . unwrap ( ) ,
11341140 WindowMessage :: IsFullscreen ( tx) => tx. send ( window. fullscreen ( ) . is_some ( ) ) . unwrap ( ) ,
11351141 WindowMessage :: IsMaximized ( tx) => tx. send ( window. is_maximized ( ) ) . unwrap ( ) ,
1142+ WindowMessage :: IsDecorated ( tx) => tx. send ( window. is_decorated ( ) ) . unwrap ( ) ,
11361143 WindowMessage :: CurrentMonitor ( tx) => tx. send ( window. current_monitor ( ) ) . unwrap ( ) ,
11371144 WindowMessage :: PrimaryMonitor ( tx) => tx. send ( window. primary_monitor ( ) ) . unwrap ( ) ,
11381145 WindowMessage :: AvailableMonitors ( tx) => {
0 commit comments