Skip to content

Wrong state of Maximize/Restore button after exiting Fullscreen and then Restoring window #82384

Closed

Description

@Eldaw

Using VS Code 1.39.1 on Windows 10, here are the steps to reproduce:

  1. Start with a normal, non-maximized window.
  2. Maximize the window. The maximize button in the top right turns into a Restore button (as expected).
  3. Hit F11 to enable Fullscreen.
  4. Hit F11 again to disable Fullscreen.
  5. Click the Restore button to return to a non-maximized window.
  6. Notice that the Restore button has not gone back to being a Maximize button. Instead, it remains as a Restore button (not expected).

Activity

  1. added
    titlebar
    on Oct 14, 2019
  2. added
    bug
    on Oct 14, 2019
  3. sbatten commented on Oct 14, 2019

    @sbatten
    Member

    great repro steps, can confirm in both electron4 and electron6

  4. sbatten commented on Mar 3, 2020

    @sbatten
    Member

    On the final restore, we are not getting an unmaximize event.

    Event.map(Event.filter(this.electronService.onWindowUnmaximize, id => id === this.environmentService.configuration.windowId), () => false)

    I've tried removing the filter at the step above in case we were at fault, but still no event is triggered.

    We are listening to the following event:

    readonly onWindowUnmaximize: Event<number> = Event.filter(Event.fromNodeEventEmitter(app, 'browser-window-unmaximize', (_, window: BrowserWindow) => window.id), windowId => !!this.windowsMainService.getWindowById(windowId));

  5. removed
    titlebar
    on Mar 3, 2020
  6. removed this from the On Deck milestone on Mar 3, 2020
  7. Eldaw commented on Jun 19, 2020

    @Eldaw
    Author

    Robo (@deepak1556) Is this bug known about upstream? Just curious about what's currently happening with it.

  8. deepak1556 commented on Dec 12, 2022

    @deepak1556
    Collaborator

    Caption buttons are now natively rendered by the runtime with WCO.

  9. locked and limited conversation to collaborators on Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions