Open igordmn opened 2 years ago
This seems to be reasonably fixed by clearing the isFullscreen
flag from ComposeWindow:
var placement: WindowPlacement
get() = when {
isFullscreen -> WindowPlacement.Fullscreen
isMaximized -> WindowPlacement.Maximized
else -> WindowPlacement.Floating
}
set(value) {
when (value) {
WindowPlacement.Fullscreen -> {
isMaximized = false
isFullscreen = true
}
WindowPlacement.Maximized -> {
isFullscreen = false
isMaximized = true
}
WindowPlacement.Floating -> {
isFullscreen = false
isMaximized = false
}
}
}
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Compose 1.0.0-rc5, Windows 11
Reproducer 1:
Actual:
Expected:
Reproducer 2:
Prints Fullscreen, but should print Maximized.
It is because we don't update
_isFullscreen
insideorg.jetbrains.skiko.FullscreenAdapter
, when we changeextendedState
in Compose.