From 2617a6485138189ae2431c8878a1959920dc5b3c Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 23 Jul 2019 21:47:14 +0200 Subject: [PATCH] make floating windows resizable on Windows, ref !140 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit “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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gtkutil/window.cpp b/libs/gtkutil/window.cpp index 50bc6df7..cb1b59c7 100644 --- a/libs/gtkutil/window.cpp +++ b/libs/gtkutil/window.cpp @@ -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 ); -- 2.39.2