Fix double-clicking layout viewports creating persistent selection rectangle (#830)

Double-clicking a viewport to enter MSPACE or sheet to enter PSPACE triggers a primary click on the first click that starts an idle selection window (pending_window). When the second click triggers dbl_primary, the handler executed an early return, leaving pending_window open and rendering an unwanted crossing/window rectangle across the screen. Reset pending_window and drag_window on double clicks and suppress primary click dispatch.

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GJoe2
2026-10-13 06:16:24 -04:00
committed by GitHub
co-authored by Brandon Thomas Claude Opus 5.5
parent 4a9dd31a58
commit 033ee15e01
5 changed files with 72 additions and 1 deletions
+3
View File
@@ -49,6 +49,9 @@ sync_github_name = true
[people.Losminek]
sync_github_name = true
[people.GJoe2]
sync_github_name = true
[people.cyfung1031]
real_name = "Chester Fung"
display_name = "Chester Fung"