浏览代码

Log when we minimize on defocus

Slightly helps debugging sporadic minimization that sometimes seems to
be happening.
Vincent Lang 9 年之前
父节点
当前提交
43f8f8c6c9
共有 1 个文件被更改,包括 3 次插入0 次删除
  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
 }