From 5d23efee03bdd16332991983b4fd87d7b0b8c8b1 Mon Sep 17 00:00:00 2001 From: Olga U Date: Sun, 25 Nov 2018 22:43:51 +0700 Subject: [PATCH] WindowMaker: fix issues with illegal windowsizes --- .../patches/illegal-window-sizes.patch | 27 +++++++++++++++++++ srcpkgs/WindowMaker/template | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/WindowMaker/patches/illegal-window-sizes.patch diff --git a/srcpkgs/WindowMaker/patches/illegal-window-sizes.patch b/srcpkgs/WindowMaker/patches/illegal-window-sizes.patch new file mode 100644 index 00000000000..fe400744267 --- /dev/null +++ b/srcpkgs/WindowMaker/patches/illegal-window-sizes.patch @@ -0,0 +1,27 @@ +Description: fixes issues with illegal windowsize hints +Author: Gaspar Chilingarov +Origin: upstream +Applied-Upstream: https://repo.or.cz/wmaker-crm.git/commitdiff/6668715402a5d8e2ecda6702076a06bf8988721e +Last-Update: 2018-11-25 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +diff --git src/window.c src/window.c +index cb4ff4e..195c3e6 100644 (file) +--- src/window.c ++++ src/window.c +@@ -2087,6 +2087,14 @@ void wWindowConfigure(WWindow *wwin, int req_x, int req_y, int req_width, int re + int synth_notify = False; + int resize; + ++ /* if window size is guaranteed to fail - fix it to some reasonable ++ * defaults */ ++ if (req_height > SHRT_MAX) ++ req_height = 480; ++ ++ if (req_width > SHRT_MAX) ++ req_height = 640; ++ + resize = (req_width != wwin->client.width || req_height != wwin->client.height); + /* + * if the window is being moved but not resized then + diff --git a/srcpkgs/WindowMaker/template b/srcpkgs/WindowMaker/template index f41eecf0072..4aa998c072e 100644 --- a/srcpkgs/WindowMaker/template +++ b/srcpkgs/WindowMaker/template @@ -1,7 +1,7 @@ # Template file for 'WindowMaker' pkgname=WindowMaker version=0.95.8 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-xinerama --localedir=/usr/share/locale --enable-usermenu --enable-modelock --enable-xrandr --enable-wmreplace