@@ -2053,6 +2053,10 @@ pub struct WindowConfig {
20532053 pub skip_taskbar : bool ,
20542054 /// The name of the window class created on Windows to create the window. **Windows only**.
20552055 pub window_classname : Option < String > ,
2056+ /// Disables the window redirection bitmap. This can avoid the white flash that may appear
2057+ /// before the webview content is rendered when using a transparent window. **Windows only**.
2058+ #[ serde( default , alias = "no-redirection-bitmap" ) ]
2059+ pub no_redirection_bitmap : bool ,
20562060 /// The initial window theme. Defaults to the system theme. Only implemented on Windows and macOS 10.14+.
20572061 pub theme : Option < crate :: Theme > ,
20582062 /// The style of the macOS title bar.
@@ -2327,6 +2331,7 @@ impl Default for WindowConfig {
23272331 content_protected : false ,
23282332 skip_taskbar : false ,
23292333 window_classname : None ,
2334+ no_redirection_bitmap : false ,
23302335 theme : None ,
23312336 title_bar_style : Default :: default ( ) ,
23322337 traffic_light_position : None ,
@@ -3873,6 +3878,7 @@ mod build {
38733878 let content_protected = self . content_protected ;
38743879 let skip_taskbar = self . skip_taskbar ;
38753880 let window_classname = opt_str_lit ( self . window_classname . as_ref ( ) ) ;
3881+ let no_redirection_bitmap = self . no_redirection_bitmap ;
38763882 let theme = opt_lit ( self . theme . as_ref ( ) ) ;
38773883 let title_bar_style = & self . title_bar_style ;
38783884 let traffic_light_position = opt_lit ( self . traffic_light_position . as_ref ( ) ) ;
@@ -3938,6 +3944,7 @@ mod build {
39383944 content_protected,
39393945 skip_taskbar,
39403946 window_classname,
3947+ no_redirection_bitmap,
39413948 theme,
39423949 title_bar_style,
39433950 traffic_light_position,
0 commit comments