From cfe205c70e282c6264544ca003b03ee1ae6b0d14 Mon Sep 17 00:00:00 2001
From: Chen Hao <dev11201@linx-info.com>
Date: Tue, 17 Dec 2024 17:04:29 +0800
Subject: [PATCH] fix-qtdialog-minimize-maximize

---
 src/core/window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/window.c b/src/core/window.c
index bc10e27..66e566a 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6637,7 +6637,8 @@ recalc_window_features (MetaWindow *window)
       window->has_resize_func = FALSE;
     }
 
-  if (window->type != META_WINDOW_NORMAL)
+  if (window->type != META_WINDOW_NORMAL &&
+      window->type != META_WINDOW_DIALOG)
     {
       window->has_minimize_func = FALSE;
       window->has_maximize_func = FALSE;
-- 
2.20.1

