]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
make floating windows resizable on Windows, ref !140 147/head
authorThomas Debesse <dev@illwieckz.net>
Tue, 23 Jul 2019 19:47:14 +0000 (21:47 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 23 Jul 2019 19:55:10 +0000 (21:55 +0200)
“hint menu” windows are resizeable on Linux but not on Windows,
that's why it's better to use the “hint utility” type instead.

libs/gtkutil/window.cpp

index 50bc6df7c1abd2fe66932df757693e9f3b965f91..cb1b59c78187a64029683720a75fd1079fa9ff49 100644 (file)
@@ -106,7 +106,7 @@ ui::Window create_floating_window( const char* title, ui::Window parent ){
         * The mainframe is not a floating window and is not created using this function so the user
         * minimizes the application by minimizing the mainframe.
         */
-       gtk_window_set_type_hint( window, GDK_WINDOW_TYPE_HINT_MENU );
+       gtk_window_set_type_hint( window, GDK_WINDOW_TYPE_HINT_UTILITY );
 
        if ( parent ) {
                gtk_window_set_transient_for( window, parent );