소스 검색

X11: only send mouse button up events if not a mousewheel "button"

(Brackets in the wrong place, my bad!)
Ryan C. Gordon 10 년 전
부모
커밋
f2f8e6f5ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/x11/SDL_x11events.c

+ 1 - 1
src/video/x11/SDL_x11events.c

@@ -1029,8 +1029,8 @@ X11_DispatchEvent(_THIS)
                     /* see explanation at case ButtonPress */
                     button -= (8-SDL_BUTTON_X1);
                 }
+                SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
             }
-            SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
         }
         break;