From 927a5d469d9734e014815b3c1897886cbb4f0638 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Wed, 10 Mar 2021 05:07:48 +0100 Subject: [PATCH] revert 0574802, the glwidget has to not be hidden for the macos hack to work revert 057480298a2d8b73f1a49c6e8d8d162b09c276d4 and add a comment to make it obvious to future readers --- radiant/texwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index 8a5cefb9..49c912b6 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -2393,7 +2393,9 @@ void TextureBrowser_hideGLWidget(){ GlobalTextureBrowser().m_vframe.set_child_packing( GlobalTextureBrowser().m_gl_widget, FALSE, FALSE, 0, ui::Packing::END ); GdkEventExpose event = {}; TextureBrowser_expose( GlobalTextureBrowser().m_gl_widget, &event, &GlobalTextureBrowser() ); - GlobalTextureBrowser().m_gl_widget.hide(); + // The hack needs the GL widget to not be hidden to work, + // so resizing it triggers the redraw of it with the new size. + // GlobalTextureBrowser().m_gl_widget.hide(); } } #endif // WORKAROUND_MACOS_GTK2_GLWIDGET -- 2.39.2