Skip to content

On Windows, title bar not appearing after coming back from full screen #579

@filiph

Description

@filiph

This is a relatively new issue — things worked as expected only a few months back. I expect maybe this is related to #531.

Steps to reproduce

First, switch to full screen with something like:

    final windowOptions = WindowOptions(
      fullScreen: true,
      titleBarStyle: TitleBarStyle.hidden,
    );
    await windowManager.waitUntilReadyToShow(windowOptions, () { ... });

Then, go back to windowed mode:

    final windowOptions = WindowOptions(
      fullScreen: false,
      titleBarStyle: TitleBarStyle.normal,  // <-- note how I force title bar back
    );
    await windowManager.waitUntilReadyToShow(windowOptions, () { ... });

Expected result

The window will have the title screen back (ability to drag the window, close it, etc.).

Actual result

The title bar isn't shown in windowed mode after coming back from full screen.

Workaround

It looks like if I don't ever touch titleBarStyle on Windows, the issue disappears (i.e. when coming back to windowed mode, Windows automatically adds the title back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions