The table here looks wrong: <https://www.jetbrains...
# compose-desktop
s
The table here looks wrong: https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-lifecycle.html#desktop I didn't investigate the actual behavior, but it seems like
windowGainedFocus
should trigger
ON_RESUME
, not
ON_PAUSE
.
1
p
Seems that it should also change the transition from
Started -> Resumed
The row below seems wrong too.
z
🔥 1
a
Does that mean that in desktop, only one window will be resumed at a time?
👀 1
💡 1
z
That's the idea so far, but I think we're open for feedback on these bindings across all the platforms.
a
With multi-resume more than one Activity can be resumed at the same time, but then there’s also a related
onTopResumedActivityChanged
callback for which one is “most” resumed.
z
That's true, I actually have quite some trouble these days getting an
Activity
into a
STARTED
state at all these days...
m
Fun fact, on Linux X11 has a little known feature to have 2 (or more) independent sets of mice and keyboard, with their own on-screen pointers. This results in each cursor having it’s own focus, and in turn multiple windows being able to be focused at the same time, and typed into at the same time (with 2 separate keyboards). This is mostly useful for multi-user systems using the same desktop session. (2 desks and sets of peripherals, same computer and desktop session)
a
That’s amazing and quite an edge case. If you could do that on Android the entire focus system and input system might just immediately break