Qt: Improve handling of exclusive fullscreen loss
Exclusive fullscreen will be re-requested automatically when the window regains focus.
This commit is contained in:
@ -202,6 +202,22 @@ bool QtDisplayWidget::event(QEvent* event)
|
||||
return true;
|
||||
}
|
||||
|
||||
case QEvent::FocusIn:
|
||||
{
|
||||
QWidget::event(event);
|
||||
emit windowFocusEvent();
|
||||
return true;
|
||||
}
|
||||
|
||||
case QEvent::ActivationChange:
|
||||
{
|
||||
QWidget::event(event);
|
||||
if (isActiveWindow())
|
||||
emit windowFocusEvent();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
default:
|
||||
return QWidget::event(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user