public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: cygwin-xfree@cygwin.com
Subject: Re: Some changed behaviors ...
Date: Sat, 04 Jul 2015 17:57:00 -0000	[thread overview]
Message-ID: <55981E92.3050003@cs.umass.edu> (raw)
In-Reply-To: <5595C8E5.6060900@dronecode.org.uk>

On 7/2/2015 7:27 PM, Jon TURNEY wrote:
> On 04/06/2015 02:41, Eliot Moss wrote:
>> I just updated to the latest XWin and got some
>> different behaviors:
>>
>> - In my .XWinrc file I was using MINIMIZE in the STYLES.  This now seems
>>    to permanently iconize a window.  If I click on the icon, it briefly
>>    flahses large and then iconizes again.
>
> Thanks for reporting this.
>
> This regression seems to be a side-effect of the change I made in 1.17.1-5.
>
> If you would like to try it, I made a snapshot which hopefully fixes this without breaking anything
> else, but when working on this code I always get the feeling that something else is going to unravel
> when I pull on one of the loose ends :)
>
> ftp://cygwin.com/pub/cygwinx/x86/XWin.20150702-git-b872b0571855112c.exe.bz2
> ftp://cygwin.com/pub/cygwinx/x86_64/XWin.20150702-git-b872b0571855112c.exe.bz2

I run 32-bit, so I tested only that, but MINIMIZE in STYLE now works!
Hooray!  This is the first time that emacs has properly minimized on
startup and properly un-minimized when first clicked!

>> - When using -geometry (with xemacs in particular), the height of the
>>    screen seems different, and if I change the geometry height by 1, the
>>    height of the window does not change by 1 -- it either doesn't change,
>>    or changes by more than one.
>
> Hmmm.... I think that the size of the emacs window is (or at least, should be) constrained so it can
> only change by a whole character?
>
> Can you give a bit more detail e.g. what version you were using previously, the geometry you are
> requesting and the actual size of the window as reported by xwininfo?

Yes, the first two geometry measures for emacs are indeed in terms of characters.

Here is output when I request 110x64+0+0 on my laptop

xwininfo: Window id: 0xe00054 "xemacs"

   Absolute upper-left X:  9
   Absolute upper-left Y:  38
   Relative upper-left X:  9
   Relative upper-left Y:  38
   Width: 1103
   Height: 983
   Depth: 24
   Visual: 0x21
   Visual Class: TrueColor
   Border width: 0
   Class: InputOutput
   Colormap: 0x20 (installed)
   Bit Gravity State: NorthWestGravity
   Window Gravity State: NorthWestGravity
   Backing Store State: NotUseful
   Save Under State: no
   Map State: IsViewable
   Override Redirect State: no
   Corners:  +9+38  -808+38  -808-59  +9-59
   -geometry 108x64+9+38

This is from requesting 110x65+0+0:

xwininfo: Window id: 0xe00054 "xemacs"

   Absolute upper-left X:  9
   Absolute upper-left Y:  38
   Relative upper-left X:  9
   Relative upper-left Y:  38
   Width: 1103
   Height: 983
   Depth: 24
   Visual: 0x21
   Visual Class: TrueColor
   Border width: 0
   Class: InputOutput
   Colormap: 0x20 (installed)
   Bit Gravity State: NorthWestGravity
   Window Gravity State: NorthWestGravity
   Backing Store State: NotUseful
   Save Under State: no
   Map State: IsViewable
   Override Redirect State: no
   Corners:  +9+38  -808+38  -808-59  +9-59
   -geometry 108x64+9+38

And this from 110x66+0+0:

xwininfo: Window id: 0xe00054 "xemacs"

   Absolute upper-left X:  9
   Absolute upper-left Y:  38
   Relative upper-left X:  9
   Relative upper-left Y:  38
   Width: 1103
   Height: 983
   Depth: 24
   Visual: 0x21
   Visual Class: TrueColor
   Border width: 0
   Class: InputOutput
   Colormap: 0x20 (installed)
   Bit Gravity State: NorthWestGravity
   Window Gravity State: NorthWestGravity
   Backing Store State: NotUseful
   Save Under State: no
   Map State: IsViewable
   Override Redirect State: no
   Corners:  +9+38  -808+38  -808-59  +9-59
   -geometry 108x64+9+38

I verified that I was changing the right file by adjusting
the width to 80 instead of 110, and it changed.

If I take that 80x66+0+0 window and drag the bottom down to add
a line, we get this:

xwininfo: Window id: 0xe00054 "xemacs"

   Absolute upper-left X:  9
   Absolute upper-left Y:  38
   Relative upper-left X:  9
   Relative upper-left Y:  38
   Width: 803
   Height: 998
   Depth: 24
   Visual: 0x21
   Visual Class: TrueColor
   Border width: 0
   Class: InputOutput
   Colormap: 0x20 (installed)
   Bit Gravity State: NorthWestGravity
   Window Gravity State: NorthWestGravity
   Backing Store State: NotUseful
   Save Under State: no
   Map State: IsViewable
   Override Redirect State: no
   Corners:  +9+38  -1108+38  -1108-44  +9-44
   -geometry 78x65+9+38

(Curious that the 80 was not obeyed, huh?  There's plenty of
room in that dimension.)  The vertical dimension may get short-
changed because it pushes right up against the icon bar at the
bottom of the screen.  I guess emacs does its own mystical
adjustment of the parameters, given available font sizes, etc.
I don't think this is a Cygwin-X specific thing, but if you
have any additional thoughts, they're welcome!

Thanks, as always, for your work on X for cygwin!   Eliot

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


      reply	other threads:[~2015-07-04 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04  1:42 Eliot Moss
2015-07-02 23:27 ` Jon TURNEY
2015-07-04 17:57   ` Eliot Moss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55981E92.3050003@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).