Do we really need the DispatchCommon class? #16505

Open
opened 2026-01-31 05:14:11 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Jan 25, 2022).

Originally assigned to: @j4james on GitHub.

Description of the new feature/enhancement

If we move the DispatchCommon::s_ResizeWindow implementation into the ConhostInternalGetSet class, then DispatchCommon is just a set of static functions that indirectly call into the ConGetSet interface. The calling code could just as easily call the ConGetSet API directly.

Proposed technical implementation details (optional)

Everywhere that we're making a call like this:

DispatchCommon::s_RefreshWindow(*_pConApi);

we'd simple change it to something like this:

_pConApi->RefreshWindow();
Originally created by @j4james on GitHub (Jan 25, 2022). Originally assigned to: @j4james on GitHub. # Description of the new feature/enhancement If we move the `DispatchCommon::s_ResizeWindow` implementation into the `ConhostInternalGetSet` class, then `DispatchCommon` is just a set of static functions that indirectly call into the `ConGetSet` interface. The calling code could just as easily call the `ConGetSet` API directly. # Proposed technical implementation details (optional) Everywhere that we're making a call like this: DispatchCommon::s_RefreshWindow(*_pConApi); we'd simple change it to something like this: _pConApi->RefreshWindow();
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16505