]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
revert 0574802, the glwidget has to not be hidden for the macos hack to work
authorThomas Debesse <dev@illwieckz.net>
Wed, 10 Mar 2021 04:07:48 +0000 (05:07 +0100)
committerThomas Debesse <dev@illwieckz.net>
Wed, 10 Mar 2021 10:20:19 +0000 (11:20 +0100)
revert 057480298a2d8b73f1a49c6e8d8d162b09c276d4
and add a comment to make it obvious to future readers

radiant/texwindow.cpp

index 8a5cefb9f020e818b692e7190c7a06299b5c8ee7..49c912b6fac703099a052212db30449c5264cb38 100644 (file)
@@ -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