SDL: Revert "Fix duplicate event dispatch in Cocoa event pump"

From 206989a22d157e795a94391e2a5af6a8acc3a4e0 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 13 Jan 2026 16:23:41 -0800
Subject: [PATCH] Revert "Fix duplicate event dispatch in Cocoa event pump"

This reverts commit dd52dd8995dc1f0fb67e7ec8dcaa6c82416a7a4c.

After that commit mouse input is not received and the window cannot be closed or resized.

Fixes https://github.com/libsdl-org/SDL/issues/14818
---
 src/video/cocoa/SDL_cocoaevents.m | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m
index f9e12cd11080d..681c1a53a804f 100644
--- a/src/video/cocoa/SDL_cocoaevents.m
+++ b/src/video/cocoa/SDL_cocoaevents.m
@@ -97,14 +97,6 @@ - (void)sendEvent:(NSEvent *)theEvent
 {
     if (s_bShouldHandleEventsInSDLApplication) {
         Cocoa_DispatchEvent(theEvent);
-
-        // Avoid double-dispatching mouse and keyboard events. They are already handled in Cocoa_DispatchEvent.
-        // Other event types should still go through AppKit's normal handling.
-        NSEventType type = [theEvent type];
-        if ((type >= NSEventTypeLeftMouseDown && type <= NSEventTypeMouseExited) ||
-            (type >= NSEventTypeKeyDown && type <= NSEventTypeFlagsChanged)) {
-            return;
-        }
     }
 
     [super sendEvent:theEvent];