Skip to content

Enable fullscreen mode - #3408

Merged
Mike Griese (zadjii-msft) merged 14 commits into
masterfrom
dev/migrie/f/fullscreen-but-on-master
Nov 5, 2019
Merged

Mike Griese (zadjii-msft) merged 14 commits into
masterfrom
dev/migrie/f/fullscreen-but-on-master

Conversation

@zadjii-msft

@zadjii-msft Mike Griese (zadjii-msft) commented Nov 1, 2019 •

Copy link
Copy Markdown
Member

Summary of the Pull Request

Enables the toggleFullscreen action to be able to enter fullscreen mode, bound by default to alt+enter.

The action is bubbled up to the WindowsTerminal (Win32) layer, where the window resizes itself to take the entire size of the monitor.

This largely reuses code from conhost. Conhost already had a fullscreen mode, so I figured I might as well re-use that.

References

Unfortunately there are still very thin borders around the window when the NonClientIslandWindow is fullscreened. I think I know where the problem is. However, that area of code is about to get a massive overhaul with #3064, so I didn't want to necessarily make it worse right now.

A follow up should be filed to add support for "Always show / reveal / never show tabs in fullscreen mode". Currently, the only mode is "never show tabs".

Additionally, some of this code (particularily re:drawing the nonclient area) could be re-used for #2238.

PR Checklist

Validation Steps Performed

  • Manually tested both the NonClientIslandWindow and the IslandWindow.

Comment thread src/cascadia/TerminalApp/defaults.json Resolved
@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 1, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Michael beat me to most/all of these. Mostly comment nits on my end though.

Comment thread doc/cascadia/profiles.schema.json Resolved
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 1, 2019
@zadjii-msft

Copy link
Copy Markdown
Member Author

(I'm holding this for #3394, because that PR is great, and I'll deal with the merge conflicts myself)

# Conflicts:
#	src/cascadia/WindowsTerminal/IslandWindow.h
#	src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp
#	src/cascadia/WindowsTerminal/NonClientIslandWindow.h
@ghost

Copy link
Copy Markdown

🎉Windows Terminal Preview v0.7.3291.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Consider supporting chromeless fullscreen mode like conhost alt+enter

4 participants