delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/10/18:53:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=vPkwTWPKBiwSg9Cu5AWKkVyVIwHIqEdJqskToIGvsUD
aKBsHrd2ee0zrY3pCi8QYGpTvln+vkr6Xx/yCDw/ILWZ8f4F/vZGbHLTUr5U5PNf
I1oWqLnlzPlozNCkJnj+6LaFxoSXg7N1BLmPr39XxgoBLZBLhqaS9mLbdcvkOkWw
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=/i3mvm20RHOxjGGv5gg/MNFcaSU=; b=k7DATvicNu3Vfqd8J
CUur5vRcH/3E/6cEAsGTNHWP2wdN9ifjgoDoNsHo3C32gmqQ3/nToymHfn49eVgl
0Pc+2u4TNsFaq5a0/V2RdyiX71jHrH0MlV/sppvgyFUYQ1SSJY8MCNbLNN+DT6ea
i7VqR/8KabPduQJ6G6GakM2sRo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=border, Doing, sk:stackov, UD:stackoverflow.com
X-HELO: mail-ua0-f169.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=+/6JYlUZkEZ68cJXMU3qf6F0oAl+tqsj3/kzB4uNKwA=; b=L3yyUjXA9lScKk/DXhTeYZdm7zWjlQFjvXkjAdzULtHmvLfWly3Iq/u5wrCcVZyJyr l3XyM4ENZMnyHBEN05Bi1wT60gvSyeYwetxG4kGInsPqRlcES/XTnpYG/eIY6u+kASI2 0yw/nK/YxGnt0yNfy8xoFaEO73aENe/jAXnDe1uYi6uh2Nmzb/dsKtlJEdOgD8hGSjTm ZAbhg1iKPnSORpIYoIPuYKF4qmCWGqGe0flGtswEA4z62AJXPHMCNFTlIhw0w9lrIehW fITJpZNguwPr00JUS/gJjBcPLL4xCFjMQoMkXC0YlbSPLnT+7MEK9CrWFmXN/YnL30nx Cosw==
X-Gm-Message-State: AEkoouuRHFAUn/xtnD5mi+8pUtYZrsEpzDdexMkyBtj1rg+VStOu+BJi6fezMzRt67etdTTk8NmHix+OlBSduA==
X-Received: by 10.176.0.3 with SMTP id 3mr3198780uai.71.1470869598847; Wed, 10 Aug 2016 15:53:18 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <308637801.11319327.1470693117361.JavaMail.yahoo@mail.yahoo.com>
References: <308637801 DOT 11319327 DOT 1470693117361 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT com> <308637801 DOT 11319327 DOT 1470693117361 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com>
From: Brian Mathis <brian DOT mathis AT gmail DOT com>
Date: Wed, 10 Aug 2016 18:53:18 -0400
Message-ID: <CAPsu6LjKbfSQDUeqUZPqWh0BisuUTjG61ZKSLT=R_TVDHb53og@mail.gmail.com>
Subject: Re: chere mintty window position
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7AMrjoS003648

Are you seeing this on Windows 10?  I have noticed a lot of other apps
do this as well on Windows 10, such as Evernote and Firefox.  It seems
to be caused by the invisible window border that Windows 10 puts on
everything to make it appear that apps have no border, but still give
you enough pixels to grab them to resize with the mouse.  You won't
notice it if you always have your apps maximized.

In that case, I don't think even a position parameter would help,
since the 0,0 would still include the invisible window border, unless
maybe you tried negative positions.

The fix needs to be done in code, as described here:
    http://stackoverflow.com/questions/35259756/wpf-and-windows-10-invisible-border-around-windows

You can pass options to mintty when you run chere using the -o option.
Try something like -o "-p -5,-5".  Run "chere -h" to see help.



On Mon, Aug 8, 2016 at 5:51 PM, Brent <yhbrent AT yahoo DOT com> wrote:
> Hello.
>
> I recently did a clean reinstallation of 32 bit cygwin, and as part of that, downloaded the chere package so that I could get Windows Explorer context menu bash here support.
>
> I like my cygwin bash terminal windows to come up maximized by default.
>
> So, my usual procedure the first time that I use the context menu bash here feature is to:
> 1) click on mintty's Windows square button in the top right to maximize the window
> 2) right click inside mintty --> Options... --> Window --> click on Current Size button
>
> Doing that this time ALMOST works.  When I try the context menu bash here feature now, the mintty window does come up greatly enlarged.  BUT it is not correctly centered!  It actually is shifted to the right by ~5 or so pixels!  That means that the right side scroll bars, for example, are partly going off the right side of the screen.  This is very annoying.
>
> Is this a known bug with mintty?
>
> Is there a fix?
>
> I have one guess.  This mintty page
>     https://mintty.github.io/mintty.1.html
> says that it supports a
>     -p, --position X,Y
> options, so something like
>     -p 0,0
> should do the trick.  The question is how can I supply an option like that to mintty when it is opened by chere from a Windows Explorer context menu.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019