# SDL: Revert "Fixed relative mode mouse events stopping if you click on the title bar"

**URL:** <https://discourse.libsdl.org/t/sdl-revert-fixed-relative-mode-mouse-events-stopping-if-you-click-on-the-title-bar/32991>\
**Category:** SDL Commits\
**Created:** [October 5, 2021, 10:48pm UTC](https://discourse.libsdl.org/t/sdl-revert-fixed-relative-mode-mouse-events-stopping-if-you-click-on-the-title-bar/32991 "2021-10-05T22:48:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 5, 2021, 10:48pm UTC](https://discourse.libsdl.org/t/sdl-revert-fixed-relative-mode-mouse-events-stopping-if-you-click-on-the-title-bar/32991/1 "2021-10-05T22:48:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/0d541e5a88ed00bfa3010e7f521c6e8b449b70df>
>
> This has been better fixed by b28ed02 or another related relative mouse mode cha…nge of @slouken in SDL 2.0.17 and as such can be reverted to reduce unneeded processing in WM\_MOUSEMOVE

```diff
From 0d541e5a88ed00bfa3010e7f521c6e8b449b70df Mon Sep 17 00:00:00 2001
From: DomGries <[EMAIL REDACTED]>
Date: Wed, 6 Oct 2021 00:36:27 +0200
Subject: [PATCH] Revert "Fixed relative mode mouse events stopping if you
 click on the title bar"

This has been better fixed by b28ed02 or another related relative mouse mode change of @slouken in SDL 2.0.17 and as such can be reverted to reduce unneeded processing in WM_MOUSEMOVE
---
 src/video/windows/SDL_windowsevents.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index 0b4a16d04f..1a7fefebb4 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -773,9 +773,6 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                         SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
                     }
                 }
- } else {
- /* We still need to update focus */
- SDL_SetMouseFocus(data->window);
             }
         }
         /* don't break here, fall through to check the wParam like the button presses */

```
