Browse Source

Log when we minimize on defocus

Slightly helps debugging sporadic minimization that sometimes seems to
be happening.
Vincent Lang 9 years ago
parent
commit
43f8f8c6c9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/ui/KonvergoWindow.cpp

+ 3 - 0
src/ui/KonvergoWindow.cpp

@@ -278,7 +278,10 @@ void KonvergoWindow::focusOutEvent(QFocusEvent * ev)
   // Do this to workaround DWM compositor bugs with fullscreened OpenGL applications.
   // The compositor will not properly redraw anything when focusing other windows.
   if (visibility() == QWindow::FullScreen && SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "minimizeOnDefocus").toBool())
+  {
+    QLOG_DEBUG() << "minimizing window";
     showMinimized();
+  }
 #endif
 }