Просмотр исходного кода

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

Lasse Öörni 14 лет назад
Родитель
Сommit
715a8196e8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Engine/Input/Input.cpp

+ 1 - 1
Engine/Input/Input.cpp

@@ -147,7 +147,7 @@ void Input::Update()
     glfwPollEvents();
     
     // 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))
     {
         activated_ = true;