Browse Source

fix(widget): always force show window on activate event

fixes #5459
reviewable/pr5466/r2
sudden6 7 years ago
parent
commit
08f368da43
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 8
      src/widget/widget.cpp

8
src/widget/widget.cpp

@ -81,10 +81,12 @@ @@ -81,10 +81,12 @@
bool toxActivateEventHandler(const QByteArray&)
{
Widget* widget = Nexus::getDesktopGUI();
if (!widget)
if (!widget) {
return true;
if (!widget->isActiveWindow())
widget->forceShow();
}
qDebug() << "Handling [activate] event from other instance";
widget->forceShow();
return true;
}

Loading…
Cancel
Save