Add obsolete window size hint information. This solved

a problem with i3 window manager which could make the
ssh-askpass window too small.

Suggested by:	Guilherme Salazar
Obtained from:	https://groups.google.com/forum/#!topic/mailing.openbsd.tech/MKSja1XZzOs
This commit is contained in:
Hiroki Sato 2016-11-06 21:19:33 +00:00
parent e697b3780c
commit 4fa48c015a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425584
2 changed files with 14 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= OpenSSH-askpass
PORTVERSION= 1.2.4.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://www.jmknoble.net/software/x11-ssh-askpass/
DISTNAME= x11-ssh-askpass-${PORTVERSION}

View File

@ -0,0 +1,13 @@
--- x11-ssh-askpass.c.orig 2016-11-06 16:18:21.595954000 +0900
+++ x11-ssh-askpass.c 2016-11-06 16:20:39.207609000 +0900
@@ -764,6 +764,10 @@
d->sizeHints->flags = 0;
d->sizeHints->flags |= PPosition;
d->sizeHints->flags |= PSize;
+ d->sizeHints->x = d->w3.w.x;
+ d->sizeHints->y = d->w3.w.y;
+ d->sizeHints->width = d->w3.w.width;
+ d->sizeHints->height = d->w3.w.height;
d->sizeHints->min_width = d->w3.w.width;
d->sizeHints->min_height = d->w3.w.height;
d->sizeHints->flags |= PMinSize;