Skip to content

Commit

Permalink
Merge branch 'master' of github.com:skyjake/Doomsday-Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 19, 2014
2 parents b5aaabf + ed55cfc commit b423204
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/client/src/ui/clientwindow.cpp
Expand Up @@ -370,7 +370,8 @@ DENG2_OBSERVES(App, StartupComplete)
MouseEvent ev = event;

// Translate mouse coordinates for direct interaction.
if(ev.type() == Event::MousePosition || ev.type() == Event::MouseButton)
if(ev.type() == Event::MousePosition || ev.type() == Event::MouseButton ||
ev.type() == Event::MouseWheel)
{
ev.setPos(contentXf.windowToLogicalCoords(event.pos()).toVector2i());
}
Expand Down
2 changes: 2 additions & 0 deletions doomsday/libappfw/src/widgets/popupwidget.cpp
Expand Up @@ -298,6 +298,8 @@ bool PopupWidget::handleEvent(Event const &event)
*/
if(GuiWidget const *hit = root().globalHitTest(mouse.pos()))
{
DENG2_ASSERT(hit != this); // !inside

if(hit->isEnabled() && hit->isVisible())
{
// Replay the click on this widget.
Expand Down

0 comments on commit b423204

Please sign in to comment.