Skip to content
Permalink
Browse files
Merge pull request #6685 from spycrab/qt_fix_rw
Qt/RenderWidget: Fix the render widget showing up when it shouldn't
  • Loading branch information
Tilka committed Apr 22, 2018
2 parents 50e80d6 + 519fa75 commit b188688
Showing 1 changed file with 4 additions and 1 deletion.
@@ -75,10 +75,13 @@ void RenderWidget::OnHideCursorChanged()

void RenderWidget::OnKeepOnTopChanged(bool top)
{
const bool was_visible = isVisible();

setWindowFlags(top ? windowFlags() | Qt::WindowStaysOnTopHint :
windowFlags() & ~Qt::WindowStaysOnTopHint);

show();
if (was_visible)
show();
}

void RenderWidget::HandleCursorTimer()

0 comments on commit b188688

Please sign in to comment.