From 67c6026ece08fb6e2de9a2fe7f149e05e459ac4d Mon Sep 17 00:00:00 2001 From: skyjake Date: Sat, 29 Jun 2013 18:37:39 +0300 Subject: [PATCH] Fixed|Client|Windows: Spurious shooting when dismissing taskbar with mouse The mouse is now trapped at the button release event rather than press, so that DirectInput isn't detecting a mouse down state when the mouse is trapped. --- doomsday/client/src/ui/widgets/legacywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doomsday/client/src/ui/widgets/legacywidget.cpp b/doomsday/client/src/ui/widgets/legacywidget.cpp index d00c804266..d633e66555 100644 --- a/doomsday/client/src/ui/widgets/legacywidget.cpp +++ b/doomsday/client/src/ui/widgets/legacywidget.cpp @@ -251,7 +251,7 @@ bool LegacyWidget::handleEvent(Event const &event) App_GameLoaded()) { MouseEvent const &mouse = event.as(); - if(mouse.state() == MouseEvent::Pressed && hitTest(mouse.pos())) + if(mouse.state() == MouseEvent::Released && hitTest(mouse.pos())) { if(root().focus()) {