Fix renderer freezing after hiding/restoring window on Gnome 3 + Xorg

Fix renderer freezing after hiding/restoring window on Gnome 3 + Xorg

diff --git a/src/engine/platform/systemInput.cpp b/src/engine/platform/systemInput.cpp
index efaafcb..ec6a10d 100644
--- a/src/engine/platform/systemInput.cpp
+++ b/src/engine/platform/systemInput.cpp
@@ -1095,9 +1095,11 @@ void idSystemLocal::ProcessEvents( sint eventTime )
                     }
                     break;
                     
+                    case SDL_WINDOWEVENT_HIDDEN:
                     case SDL_WINDOWEVENT_MINIMIZED:
                         cvarSystem->SetValue( "com_minimized", 1 );
                         break;
+                    case SDL_WINDOWEVENT_SHOWN:
                     case SDL_WINDOWEVENT_RESTORED:
                     case SDL_WINDOWEVENT_MAXIMIZED:
                         cvarSystem->SetValue( "com_minimized", 0 );

GitHub
sha: da53056f