Skip to content

[Desktop] Closing full screen is not working correctly #4380

@MohamedRejeb

Description

@MohamedRejeb

Describe the bug
When I share the window state placement to WindowPlacement.FullScreen everything works fine but I change it back to WindowPlacement.Maximized it remains full screen.

Affected platforms

  • Desktop

Versions

  • Kotlin version*: 1.9.22
  • Compose Multiplatform version*: 1.6.0-rc02
  • OS version(s)* (required for Desktop and iOS issues): MacOs 13.0.1
  • OS architecture (x86 or arm64): arm64
  • JDK (for desktop issues): 17

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Change window state placement to WindowPlacement.FullScreen
  2. Change window state placement to WindowPlacement.Maximized
  3. You will see that the window is still in full-screen mode.

This is a screen recording describing the issue:
https://github.com/JetBrains/compose-multiplatform/assets/41842296/4d7df284-b367-4452-bc34-8e7965425597

Expected behavior
The full-screen mode should be disabled.

This is a screen recording describing the expected behavior:
https://github.com/JetBrains/compose-multiplatform/assets/41842296/0b42c46e-b761-4f5b-b8d0-9e06e1ee366e

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdesktop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions