Skip to content

Commit 83b37c5

Browse files
committed
Avoid window blink when handling OpenGL
1 parent 772a371 commit 83b37c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DockAreaWidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ void CDockAreaWidget::setCurrentIndex(int index)
725725
Q_EMIT currentChanging(index);
726726
TabBar->setCurrentIndex(index);
727727
d->ContentsLayout->setCurrentIndex(index);
728+
// Force the widget to be native in order to avoid blinks with OpenGL widgets
729+
d->ContentsLayout->currentWidget()->winId();
728730
d->ContentsLayout->currentWidget()->show();
729731
// Force the repaint of the current widget because mix of OpenGL widgets
730732
// and Raster widgets could have not been entirely rendered

0 commit comments

Comments
 (0)