Qt: only center basic mouse input on active fullscreens

This commit is contained in:
Megamouse 2018-08-20 19:54:45 +02:00
parent 6fc869e21b
commit d1d1b2effd
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void basic_mouse_handler::MouseMove(QMouseEvent* event)
{
if (is_time_for_update())
{
if (m_target && m_target->visibility() == QWindow::Visibility::FullScreen)
if (m_target && m_target->visibility() == QWindow::Visibility::FullScreen && m_target->isActive())
{
// get the screen dimensions
const QSize screen = m_target->size();