Use the I-beam pointer over the text area - #20645
Open
Nikolay Shopik (nshopik) wants to merge 1 commit into
Open
Use the I-beam pointer over the text area#20645Nikolay Shopik (nshopik) wants to merge 1 commit into
Nikolay Shopik (nshopik) wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Author
|
@microsoft-github-policy-service agree |
This comment has been minimized.
This comment has been minimized.
Nikolay Shopik (nshopik)
force-pushed
the
ibeam-pointer
branch
from
September 4, 2026 15:43
f6cdbb5 to
c44d15e
Compare
WinUI 2 has no per-element cursor - UIElement.ProtectedCursor is WinUI 3 only - so the shape gets set on the CoreWindow and derived on every pointer move. Win32 SetCursor loses the race against the WM_SETCURSOR the XAML input site handles while the move is dispatched, and the arrow shows through as a flicker. Closes microsoft#1441
Leonard Hecker (lhecker)
left a comment
Member
There was a problem hiding this comment.
Is it not necessary to do this on focus too? Tabbing back into the app should update the cursor even if I don't move the cursor and this doesn't handle it right?
Author
|
I've manually tested alt-tabing when not moving cursor it update it correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows Terminal shows the arrow pointer over selectable text, which the Windows human interface guidelines treat as wrong and which no other mainstream terminal does. Closes #1441.
WinUI 2 has no per-element cursor -
UIElement.ProtectedCursoris WinUI 3 only - so the shape is derived on every pointer move and set on theCoreWindow, the same cursor XAML itself applies. Setting it with Win32SetCursorflickers instead, because it loses to theWM_SETCURSORthe XAML input site handles while the move is dispatched.No setting turns this off. The global opt-out asked for in #5028 can follow in a separate change if it is still wanted.