@@ -37,7 +37,13 @@ use tauri_runtime::{
3737use objc2:: rc:: Retained ;
3838#[ cfg( target_os = "macos" ) ]
3939use tao:: platform:: macos:: { EventLoopWindowTargetExtMacOS , WindowBuilderExtMacOS } ;
40- #[ cfg( target_os = "linux" ) ]
40+ #[ cfg( any(
41+ target_os = "linux" ,
42+ target_os = "dragonfly" ,
43+ target_os = "freebsd" ,
44+ target_os = "netbsd" ,
45+ target_os = "openbsd"
46+ ) ) ]
4147use tao:: platform:: unix:: { WindowBuilderExtUnix , WindowExtUnix } ;
4248#[ cfg( windows) ]
4349use tao:: platform:: windows:: { WindowBuilderExtWindows , WindowExtWindows } ;
@@ -862,7 +868,13 @@ impl WindowBuilder for WindowBuilderWrapper {
862868 " ) ;
863869 }
864870
865- #[ cfg( target_os = "linux" ) ]
871+ #[ cfg( any(
872+ target_os = "linux" ,
873+ target_os = "dragonfly" ,
874+ target_os = "freebsd" ,
875+ target_os = "netbsd" ,
876+ target_os = "openbsd"
877+ ) ) ]
866878 {
867879 // Mouse event is disabled on Linux since sudden event bursts could block event loop.
868880 window. inner = window. inner . with_cursor_moved_event ( false ) ;
@@ -1194,7 +1206,14 @@ impl WindowBuilder for WindowBuilderWrapper {
11941206 self
11951207 }
11961208
1197- #[ cfg( any( windows, target_os = "linux" ) ) ]
1209+ #[ cfg( any(
1210+ windows,
1211+ target_os = "linux" ,
1212+ target_os = "dragonfly" ,
1213+ target_os = "freebsd" ,
1214+ target_os = "netbsd" ,
1215+ target_os = "openbsd"
1216+ ) ) ]
11981217 fn skip_taskbar ( mut self , skip : bool ) -> Self {
11991218 self . inner = self . inner . with_skip_taskbar ( skip) ;
12001219 self
@@ -3417,7 +3436,14 @@ fn handle_user_message<T: UserEvent>(
34173436 }
34183437 #[ allow( unused_variables) ]
34193438 WindowMessage :: SetSkipTaskbar ( skip) => {
3420- #[ cfg( any( windows, target_os = "linux" ) ) ]
3439+ #[ cfg( any(
3440+ windows,
3441+ target_os = "linux" ,
3442+ target_os = "dragonfly" ,
3443+ target_os = "freebsd" ,
3444+ target_os = "netbsd" ,
3445+ target_os = "openbsd"
3446+ ) ) ]
34213447 let _ = window. set_skip_taskbar ( skip) ;
34223448 }
34233449 WindowMessage :: SetCursorGrab ( grab) => {
0 commit comments