From 9f99479411d96509c6893aece085c9842c7a3185 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 21 Mar 2023 19:49:36 +0100 Subject: [PATCH] Update patch for terminals max --- .../wmaker-ignore-max-for-terminals.patch | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/x11-wm/windowmaker/files/wmaker-ignore-max-for-terminals.patch b/x11-wm/windowmaker/files/wmaker-ignore-max-for-terminals.patch index 8a74509..e0579fa 100644 --- a/x11-wm/windowmaker/files/wmaker-ignore-max-for-terminals.patch +++ b/x11-wm/windowmaker/files/wmaker-ignore-max-for-terminals.patch @@ -1,9 +1,9 @@ diff --git a/src/window.c b/src/window.c -index 70e1f962..2acc4e3c 100644 +index 1f16f458..a9bad2f6 100644 --- a/src/window.c +++ b/src/window.c -@@ -1911,10 +1911,9 @@ void wWindowConstrainSize(WWindow *wwin, unsigned int *nwidth, unsigned int *nhe - } +@@ -1902,10 +1902,8 @@ void wWindowConstrainSize(WWindow *wwin, unsigned int *nwidth, unsigned int *nhe + int baseH = 0; if (wwin->normal_hints) { - if (!wwin->flags.maximized) { @@ -12,11 +12,10 @@ index 70e1f962..2acc4e3c 100644 - } + winc = wwin->normal_hints->width_inc; + hinc = wwin->normal_hints->height_inc; -+ - minW = wwin->normal_hints->min_width; - minH = wwin->normal_hints->min_height; - maxW = wwin->normal_hints->max_width; -@@ -1981,17 +1980,15 @@ void wWindowConstrainSize(WWindow *wwin, unsigned int *nwidth, unsigned int *nhe + if (wwin->normal_hints->min_width > minW) + minW = wwin->normal_hints->min_width; + if (wwin->normal_hints->min_height > minH) +@@ -1980,17 +1978,15 @@ void wWindowConstrainSize(WWindow *wwin, unsigned int *nwidth, unsigned int *nhe } } @@ -33,11 +32,12 @@ index 70e1f962..2acc4e3c 100644 - if (baseH != 0) - height = (((height - baseH) / hinc) * hinc) + baseH; - else +- height = (((height - minH) / hinc) * hinc) + minH; +- } + if (baseH != 0) + height = (((height - baseH) / hinc) * hinc) + baseH; + else - height = (((height - minH) / hinc) * hinc) + minH; -- } ++ height = (((height - minH) / hinc) * hinc) + minH; /* broken stupid apps may cause preposterous values for these.. */ if (width > 0)