[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-f
From: |
martin rudalics |
Subject: |
bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame |
Date: |
Sun, 20 Sep 2015 00:17:10 +0200 |
> Below is a patch that should correct the problem:
Thanks. But pretty please send it as an attachment. Here it arrived
as:
> diff --git a/src/nsterm.m b/src/nsterm.m
> index 2806f31..14f2beb 100644--- a/src/nsterm.m
> +++ b/src/nsterm.m@@ -1333,6 +1333,7 @@ x_set_window_size (struct
> frame *f, int tb = FRAME_EXTERNAL_TOOL_BAR (f);
> int pixelwidth, pixelheight;
> int rows, cols;+ int orig_height = wr.size.height;
> NSTRACE (x_set_window_size);
> @@ -1386,7 +1387,7 @@ x_set_window_size (struct frame *f, if
> (f->output_data.ns->zooming)
> f->output_data.ns->zooming = 0;
> else- wr.origin.y += FRAME_PIXEL_HEIGHT (f) - pixelheight;+
> wr.origin.y += orig_height - wr.size.height;
> [view setRows: rows andColumns: cols];
> [window setFrame: wr display: YES];
> Effectively, this will ensure that whenever the height of a frame is
> changed, the origin (the distance from the lower left corner of the display
> to the lower left hand corner of the frame) is updated accordingly.
Can you please tell us why the "origin" on OS X is apparently the lower
left corner? Where can I read about this?
martin
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, (continued)
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Keith David Bershatsky, 2015/09/13
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/13
- Message not available
- Message not available
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/14
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/14
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/14
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/14
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/14
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/15
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/19
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame,
martin rudalics <=
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/20
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/20
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/20
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/20
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Anders Lindgren, 2015/09/20
- bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, martin rudalics, 2015/09/21
bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Keith David Bershatsky, 2015/09/13
bug#21415: 25.0.50; Emacs Trunk -- pixelwise width/height for x-create-frame, Keith David Bershatsky, 2015/09/13