From 163ab11e05a0604f53d362776f30b27dee132aad Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sun, 2 Aug 2026 00:07:22 -0400 Subject: [PATCH] =?UTF-8?q?Handle=20Psi's=20ReaperSurface::Count=20sentine?= =?UTF-8?q?l=20in=20decideDropClass=20=E2=80=94=20Gamma's=20exhaustive-swi?= =?UTF-8?q?tch=20gate=20turns=20it=20into=20a=20hard=20error=20on=20contac?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sentinel is not a surface, so it breaks to the existing unclassifiable-surface refusal rather than joining a real case label. --- src/core/ui/drag_out.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ui/drag_out.cpp b/src/core/ui/drag_out.cpp index 1a0440c..725782d 100644 --- a/src/core/ui/drag_out.cpp +++ b/src/core/ui/drag_out.cpp @@ -44,6 +44,9 @@ DropClass decideDropClass(int px, int py, const PanelClientRect& client, case ReaperSurface::FxEmbed: case ReaperSurface::Other: return DropClass::Refuse; + + case ReaperSurface::Count: + break; // the sentinel is not a surface; it falls to the refusal below } return DropClass::Refuse; // an unclassifiable surface still refuses visibly, never silently }