File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ pub unsafe fn create_host(
143
143
let mut rect = RECT :: default ( ) ;
144
144
GetClientRect ( taskbar_hwnd, & mut rect) ?;
145
145
146
+ #[ cfg( debug_assertions) ]
147
+ let window_class = w ! ( "komorebi-switcher-debug::host" ) ;
148
+ #[ cfg( not( debug_assertions) ) ]
146
149
let window_class = w ! ( "komorebi-switcher::host" ) ;
147
150
148
151
let wc = WNDCLASSW {
Original file line number Diff line number Diff line change @@ -38,13 +38,18 @@ impl App {
38
38
let parent = unsafe { NonZero :: new_unchecked ( host. 0 as _ ) } ;
39
39
let parent = Win32WindowHandle :: new ( parent) ;
40
40
let parent = RawWindowHandle :: Win32 ( parent) ;
41
-
42
41
attrs = unsafe { attrs. with_parent_window ( Some ( parent) ) } ;
42
+
43
+ #[ cfg( debug_assertions) ]
44
+ let class_name = "komorebi-switcher-debug::window" ;
45
+ #[ cfg( not( debug_assertions) ) ]
46
+ let class_name = "komorebi-switcher::window" ;
47
+
43
48
attrs = attrs
44
49
. with_decorations ( false )
45
50
. with_transparent ( true )
46
51
. with_active ( false )
47
- . with_class_name ( "komorebi-switcher::window" )
52
+ . with_class_name ( class_name )
48
53
. with_undecorated_shadow ( false )
49
54
. with_no_redirection_bitmap ( true )
50
55
. with_clip_children ( false ) ;
You can’t perform that action at this time.
0 commit comments