Procházet zdrojové kódy

Fixed erroneous mouse move on windowed/fullscreen toggle on X11.

Lasse Öörni před 14 roky
rodič
revize
715a8196e8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Engine/Input/Input.cpp

+ 1 - 1
Engine/Input/Input.cpp

@@ -147,7 +147,7 @@ void Input::Update()
     glfwPollEvents();
     glfwPollEvents();
     
     
     // In fullscreen mode or after a screen mode change, activate input automatically
     // In fullscreen mode or after a screen mode change, activate input automatically
-    if ((graphics_->GetFullscreen() || screenModeSet_) && !active_ && glfwGetWindowParam(graphics_->GetWindowHandle(),
+    if ((graphics_->GetFullscreen() && !active_) || screenModeSet_ && glfwGetWindowParam(graphics_->GetWindowHandle(),
         GLFW_ACTIVE))
         GLFW_ACTIVE))
     {
     {
         activated_ = true;
         activated_ = true;