Skip to content

Commit

Permalink
Initial framework for fixing bug #111
Browse files Browse the repository at this point in the history
NOTE: Does not actually fix it, but provides a method in which to place
a solution.
  • Loading branch information
Josh Palmer committed Sep 26, 2012
1 parent 57a8515 commit ffa6f61
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Src/base/SystemUiController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@ bool SystemUiController::handleGestureEvent (QGestureEvent* event)
}
}
}

if (tap->position().x() <= kGestureBorderSize
|| tap->position().x() >= m_uiWidth - kGestureBorderSize
|| tap->position().y() <= kGestureBorderSize
|| tap->position().y() >= m_uiHeight - kGestureBorderSize)
{
CardWindowManager::instance()->deadzoneTap(tap);
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions Src/lunaui/cards/CardWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,15 @@ void CardWindowManager::firstCardAlert()
}
}

void CardWindowManager::deadzoneTap(QTapGesture* event)
{
//Only send events to the active window when maximized
if(NULL == activeWindow() || !isMaximized())
return;

qCritical() << "Deadzone Tapped";
}

void CardWindowManager::handleKeyNavigationMinimized(QKeyEvent* keyEvent)
{
if (!m_activeGroup || keyEvent->type() != QEvent::KeyPress)
Expand Down
3 changes: 3 additions & 0 deletions Src/lunaui/cards/CardWindowManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class CardWindowManager : public WindowManagerBase

// cycle through cards in tabbed view
void cycleGroupTabs();

// convert tap events on the gesture border to single clicks
void deadzoneTap(QTapGesture* event);

CardWindow* modalParent() const { return m_parentOfModalCard; }

Expand Down

0 comments on commit ffa6f61

Please sign in to comment.