From a12704c6a31186f64a25913eede5ff0c7796548e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Wed, 17 Oct 2012 13:39:54 +0200 Subject: [PATCH] Don't eat my mouse when i might be debugging --- indra/llwindow/llwindowsdl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 7fb5dea03..0f93fea47 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -1515,7 +1515,8 @@ BOOL LLWindowSDL::SDLReallyCaptureInput(BOOL capture) if (!mFullscreen) /* only bother if we're windowed anyway */ { -#if LL_X11 + // Capturing mouse makes UI debuggers unusable +#if (LL_X11 && !_DEBUG && !LL_RELEASE_WITH_DEBUG_INFO) if (mSDL_Display) { /* we dirtily mix raw X11 with SDL so that our pointer @@ -1558,8 +1559,8 @@ BOOL LLWindowSDL::SDLReallyCaptureInput(BOOL capture) newmode = SDL_GRAB_QUERY; // neutral } } else // not actually running on X11, for some reason - newmode = wantmode; #endif // LL_X11 + newmode = wantmode; } else { // pretend we got what we wanted, when really we don't care. newmode = wantmode;