File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ extension WindowManager {
374374 markAllScreensForReflow ( withChange: . none)
375375 }
376376
377- private func add( window: Window , retries: Int = 5 ) {
377+ private func add( window: Window , retries: Int = 5 , delay : TimeInterval = 0.01 ) {
378378 guard window. shouldBeManaged ( ) else {
379379 return
380380 }
@@ -394,8 +394,8 @@ extension WindowManager {
394394
395395 switch application. defaultFloatForWindow ( window) {
396396 case . unreliable where retries > 0 :
397- return DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.05 ) {
398- self . add ( window: window, retries: retries - 1 )
397+ return DispatchQueue . main. asyncAfter ( deadline: . now( ) + delay ) {
398+ self . add ( window: window, retries: retries - 1 , delay : delay * 2 )
399399 }
400400 case . reliable( . floating) , . unreliable( . floating) :
401401 windows. setFloating ( true , forWindow: window)
You can’t perform that action at this time.
0 commit comments