[PR #3721] [MERGED] Fix fullscreen after maximize #25481

Open
opened 2026-01-31 09:09:47 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3721
Author: @beviu
Created: 11/26/2019
Status: Merged
Merged: 12/16/2019
Merged by: @undefined

Base: masterHead: fix-maximize-fullscreen


📝 Commits (2)

📊 Changes

4 files changed (+45 additions, -62 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+26 -31)
📝 src/cascadia/WindowsTerminal/IslandWindow.h (+0 -3)
📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp (+19 -26)
📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.h (+0 -2)

📄 Description

Summary of the Pull Request

Fixes the sides disappearing when entering full screen mode when the window is maximized.
However, now, a Vista-style frame briefly appears when entering/exiting full screen.

References

PR Checklist

  • Closes Multistring command throw exception (#3709)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated (no)
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

When the non-client island window is maximized and has the WS_OVERLAPPEDWINDOW style, SetWindowPos is "lying": the position ends up being offset compared to the one we gave it (found by debugging). So I changed it to use WS_POPUP like the client island window was already doing. But now it has the Vista frame that appears briefly when entering/exiting full screen like the client island window.

Validation Steps Performed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/3721 **Author:** [@beviu](https://github.com/beviu) **Created:** 11/26/2019 **Status:** ✅ Merged **Merged:** 12/16/2019 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `fix-maximize-fullscreen` --- ### 📝 Commits (2) - [`fd5e663`](https://github.com/microsoft/terminal/commit/fd5e6635ee49e2718ed77a1da1eb9b53c30630b7) Use WS_POPUP for NonClientIslandWindow instead of overriding WM_NCCALCSIZE to remove borders - [`7443486`](https://github.com/microsoft/terminal/commit/7443486cd0e9929396a94e2a07e4526ce18c90cf) Merge branch 'master' of https://github.com/microsoft/terminal into fix-maximize-fullscreen ### 📊 Changes **4 files changed** (+45 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+26 -31) 📝 `src/cascadia/WindowsTerminal/IslandWindow.h` (+0 -3) 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp` (+19 -26) 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.h` (+0 -2) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Fixes the sides disappearing when entering full screen mode when the window is maximized. However, now, a Vista-style frame briefly appears when entering/exiting full screen. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #3709 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [x] Requires documentation to be updated (no) * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments When the non-client island window is maximized and has the WS_OVERLAPPEDWINDOW style, SetWindowPos is "lying": the position ends up being offset compared to the one we gave it (found by debugging). So I changed it to use WS_POPUP like the client island window was already doing. But now it has the Vista frame that appears briefly when entering/exiting full screen like the client island window. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:09:47 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25481