We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f63d1c commit e74b26bCopy full SHA for e74b26b
1 file changed
src/commonMain/kotlin/com/kdroid/composetray/tray/api/TrayApp.kt
@@ -391,10 +391,15 @@ fun ApplicationScope.TrayApp(
391
}
392
393
// FIX: Consolidated visibility handling with position calculation BEFORE showing the window.
394
- // Added polling loop to wait for a valid (non-default) position.
+ // Added macOS-specific delay before polling, as per your feedback.
395
LaunchedEffect(isVisible) {
396
if (isVisible) {
397
if (!shouldShowWindow) {
398
+ // macOS-specific delay to allow tray icon to settle
399
+ if (os == MACOS) {
400
+ delay(300)
401
+ }
402
+
403
val widthPx = currentWindowSize.width.value.toInt()
404
val heightPx = currentWindowSize.height.value.toInt()
405
var position: WindowPosition = WindowPosition.PlatformDefault
0 commit comments