From: Thomas Debesse Date: Wed, 10 Mar 2021 04:07:48 +0000 (+0100) Subject: revert 0574802, the glwidget has to not be hidden for the macos hack to work X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=927a5d469d9734e014815b3c1897886cbb4f0638;p=xonotic%2Fnetradiant.git 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 --- 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