[PR #10404] [MERGED] Convert four INSIDE_WINDOWS blocks to til features #28036

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10404
Author: @DHowett
Created: 6/11/2021
Status: Merged
Merged: 6/11/2021
Merged by: @undefined

Base: mainHead: dev/duhowett/jerkify


📝 Commits (5)

  • 4dcb4c5 Convert ReceiveIncomingHandoff from INSIDE_WINDOWS
  • 92bb96a Convert AttemptHandoff from INSIDE_WINDOWS
  • 911a3c6 Convert the DX engine from INSIDE_WINDOWS
  • 683b735 Convert numpad event synthesis from INSIDE_WINDOWS
  • 2ba97b0 spell: feature defines aren't checked

📊 Changes

12 files changed (+86 additions, -53 deletions)

View changed files

📝 .github/actions/spelling/patterns/patterns.txt (+1 -0)
📝 src/features.xml (+42 -3)
📝 src/host/exe/exemain.cpp (+3 -3)
📝 src/host/srvinit.cpp (+5 -5)
📝 src/host/ut_host/ClipboardTests.cpp (+23 -20)
📝 src/host/ut_host/VtIoTests.cpp (+3 -3)
📝 src/interactivity/base/EventSynthesis.cpp (+2 -12)
📝 src/interactivity/win32/window.cpp (+3 -3)
📝 src/renderer/dx/DxRenderer.cpp (+1 -1)
📝 src/renderer/dx/ScreenPixelShader.h (+1 -1)
📝 src/renderer/dx/ScreenVertexShader.h (+1 -1)
📝 src/server/IoDispatchers.cpp (+1 -1)

📄 Description

This pull request converts four of our existing #ifdef (or #ifndef)
INSIDE_WINDOWS blocks to til::features:

  • Attempting to establish a handoff session (inside Windows only)
  • The ability to receive a handoff session (outside Windows only)
  • The DX engine (outside Windows only) and shaders (also outside only)
  • Whether we use numpad event synthesis for clipboard/conpty (inside
    Windows only)

Most of these are using the preprocessor verison of til::feature, only
because it is more difficult to gate the inclusion of headers on
constant expressions. I'd love to prefer the compile time version.


🔄 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/10404 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 6/11/2021 **Status:** ✅ Merged **Merged:** 6/11/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/jerkify` --- ### 📝 Commits (5) - [`4dcb4c5`](https://github.com/microsoft/terminal/commit/4dcb4c56ba03246b278b67f5ca5bddaa058bac8d) Convert ReceiveIncomingHandoff from INSIDE_WINDOWS - [`92bb96a`](https://github.com/microsoft/terminal/commit/92bb96ad3a2f74d71c855146be90aec7e38c2094) Convert AttemptHandoff from INSIDE_WINDOWS - [`911a3c6`](https://github.com/microsoft/terminal/commit/911a3c64678f0842d971d58e9faafc5268594444) Convert the DX engine from INSIDE_WINDOWS - [`683b735`](https://github.com/microsoft/terminal/commit/683b735f3d8d68d6446baa0f2ebe7710d8f0ce93) Convert numpad event synthesis from INSIDE_WINDOWS - [`2ba97b0`](https://github.com/microsoft/terminal/commit/2ba97b0776a81a03dfa0ca4442a61ea770d761bc) spell: feature defines aren't checked ### 📊 Changes **12 files changed** (+86 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/patterns/patterns.txt` (+1 -0) 📝 `src/features.xml` (+42 -3) 📝 `src/host/exe/exemain.cpp` (+3 -3) 📝 `src/host/srvinit.cpp` (+5 -5) 📝 `src/host/ut_host/ClipboardTests.cpp` (+23 -20) 📝 `src/host/ut_host/VtIoTests.cpp` (+3 -3) 📝 `src/interactivity/base/EventSynthesis.cpp` (+2 -12) 📝 `src/interactivity/win32/window.cpp` (+3 -3) 📝 `src/renderer/dx/DxRenderer.cpp` (+1 -1) 📝 `src/renderer/dx/ScreenPixelShader.h` (+1 -1) 📝 `src/renderer/dx/ScreenVertexShader.h` (+1 -1) 📝 `src/server/IoDispatchers.cpp` (+1 -1) </details> ### 📄 Description This pull request converts four of our existing `#ifdef` (or `#ifndef`) `INSIDE_WINDOWS` blocks to til::features: * Attempting to establish a handoff session (inside Windows only) * The ability to *receive* a handoff session (outside Windows only) * The DX engine (outside Windows only) and shaders (also outside only) * Whether we use numpad event synthesis for clipboard/conpty (inside Windows only) Most of these are using the preprocessor verison of til::feature, only because it is more difficult to gate the inclusion of headers on constant expressions. I'd love to prefer the compile time version. --- <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:25:54 +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#28036