all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1c0d0704a2425a55d2ca9d9becd3807c40d0fdca 907 bytes (raw)
name: gnu/packages/patches/wxwidgets-fix-windowGTK.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
This patch allow Filezilla client to resize window.
The patch was adapted from upstream source repository:
'<http://trac.wxwidgets.org/changeset/4793e5b0a4e189e492287305859b278fed780080/git-wxWidgets>'

Commit: a97553a939b76df1564ffbfe9c919d1da5a34c5a

--- a/src/gtk/toplevel.cpp	2014-10-06 16:33:44.000000000 -0500
+++ b/src/gtk/toplevel.cpp	2017-02-16 21:33:27.779907810 -0600
@@ -1216,8 +1216,9 @@
     int hints_mask = GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE;
     hints.min_width = 1;
     hints.min_height = 1;
-    hints.max_width = INT_MAX;
-    hints.max_height = INT_MAX;
+    // using INT_MAX for size will lead to integer overflow with HiDPI scaling
+    hints.max_width = INT_MAX / 16;
+    hints.max_height = INT_MAX / 16;    
     const int decorSize_x = m_decorSize.left + m_decorSize.right;
     const int decorSize_y = m_decorSize.top + m_decorSize.bottom;
     if (minSize.x > decorSize_x)

debug log:

solving 1c0d0704a ...
found 1c0d0704a in https://yhetil.org/guix/bb3ae5fbe037317355e7c63013749d66@openmailbox.org/ ||
	https://yhetil.org/guix/d0f1ad2983cc2716d26f8c92f881a062@openmailbox.org/

applying [1/1] https://yhetil.org/guix/bb3ae5fbe037317355e7c63013749d66@openmailbox.org/
diff --git a/gnu/packages/patches/wxwidgets-fix-windowGTK.patch b/gnu/packages/patches/wxwidgets-fix-windowGTK.patch
new file mode 100644
index 000000000..1c0d0704a

1:23: trailing whitespace.
+    hints.max_height = INT_MAX / 16;    
Checking patch gnu/packages/patches/wxwidgets-fix-windowGTK.patch...
Applied patch gnu/packages/patches/wxwidgets-fix-windowGTK.patch cleanly.
warning: 1 line adds whitespace errors.

skipping https://yhetil.org/guix/d0f1ad2983cc2716d26f8c92f881a062@openmailbox.org/ for 1c0d0704a
index at:
100644 1c0d0704a2425a55d2ca9d9becd3807c40d0fdca	gnu/packages/patches/wxwidgets-fix-windowGTK.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.