Skip to content

Commit

Permalink
Fixed|Client|Windows: Spurious shooting when dismissing taskbar with …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
skyjake committed Jun 29, 2013
1 parent 31731b4 commit 67c6026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/ui/widgets/legacywidget.cpp
Expand Up @@ -251,7 +251,7 @@ bool LegacyWidget::handleEvent(Event const &event)
App_GameLoaded())
{
MouseEvent const &mouse = event.as<MouseEvent>();
if(mouse.state() == MouseEvent::Pressed && hitTest(mouse.pos()))
if(mouse.state() == MouseEvent::Released && hitTest(mouse.pos()))
{
if(root().focus())
{
Expand Down

0 comments on commit 67c6026

Please sign in to comment.