Fix some bug for windows

This commit is contained in:
daleclack 2024-03-07 20:01:42 +08:00
parent 4fff43b76a
commit 26cb6dd5f8
3 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "DrawApp.h"
#include "MyFinder.h"
#define NAME_MAX 256
typedef enum
{

View File

@ -1,4 +1,5 @@
#include "ScoresItem.h"
#define NAME_MAX 256
struct _ScoresItem
{

View File

@ -106,6 +106,7 @@ static void window_ctrl(GtkWindow *window, GtkWindow *parent)
case GDK_TOPLEVEL_STATE_MINIMIZED:
gtk_window_set_transient_for(window, parent);
gtk_window_unminimize(window);
gtk_window_present(window);
break;
default:
// The controlled window is on dock