unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: PEDRO ANDRES ARANDA GUTIERREZ <paranda@it.uc3m.es>
To: martin rudalics <rudalics@gmx.at>
Cc: 48157@debbugs.gnu.org
Subject: bug#48157: Emacs-28 on Mac: corrupted GUI when setting default-frame-alist
Date: Mon, 3 May 2021 08:49:21 +0200	[thread overview]
Message-ID: <CAPoMwp32JRSLtQy4iFddu3tnVpq+KpRd=asc6=u6RfCLeXrMQw@mail.gmail.com> (raw)
In-Reply-To: <ee54dbcf-276c-58b0-b081-65238f068e54@gmx.at>

[-- Attachment #1: Type: text/plain, Size: 1741 bytes --]

HI,

I retried a couple of minutes ago and it continues to startup weirdly on my
MacBook Air

Darwin paag-MacBookAir 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12
22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64

The same code compiled on my pre-2015 McBook Pro (macOS 10.13) works
perfectly on both systems.

Best, /PA

El dom, 2 may 2021 a las 18:17, martin rudalics (<rudalics@gmx.at>)
escribió:

>  > Just tested compiling emacs con macOS Catalina.
>  >
>  > My .emacs.d/init includes
>  >
>  > (setq default-frame-alist '((top . 32 ) (left . 32) (width . 128)
> (height . 37)))
>  >
>  > The result is this:
>  >
>  >
>  > With the mini-buffer line hidden. If I comment this line, the GUI is
> created correctly. The window rebuild correctly if I resize it with the
> mouse
>
> Please try the patch below.
>
> Thanks, martin
>
>
> diff --git a/src/nsterm.m b/src/nsterm.m
> index 6e7ab1266b..b089146e64 100644
> --- a/src/nsterm.m
> +++ b/src/nsterm.m
> @@ -7310,9 +7310,9 @@ - (void)viewDidResize:(NSNotification *)notification
>
>     /* Don't want to do anything when the view size hasn't changed. */
>     if ((oldh == newh && oldw == neww)
> -      || (emacsframe->new_size_p
> -          && newh == emacsframe->new_height
> -          && neww == emacsframe->new_width))
> +      && (!emacsframe->new_size_p
> +          || (newh == emacsframe->new_height
> +             && neww == emacsframe->new_width)))
>       {
>         NSTRACE_MSG ("No change");
>         return;
>


-- 
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de Madrid

"Fragen sind nicht da um beantwortet zu werden.
Fragen sind da, um gestellt zu werden" Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 2537 bytes --]

  reply	other threads:[~2021-05-03  6:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 10:37 bug#48157: Emacs-28 on Mac: corrupted GUI when setting default-frame-alist PEDRO ANDRES ARANDA GUTIERREZ
2021-05-02 11:39 ` Alan Third
2021-05-02 16:17 ` martin rudalics
2021-05-03  6:49   ` PEDRO ANDRES ARANDA GUTIERREZ [this message]
2021-05-03  7:56     ` martin rudalics
     [not found]       ` <CAPoMwp0xhMSa9KUaTmmYsQZBJjtLpY-2Kz5qvuLZLVpxN5Dzsw@mail.gmail.com>
     [not found]         ` <CAPoMwp2X66+512Yj8aWna5WzYj=Luqa8r7c+JZjhiOmhMWuZ7g@mail.gmail.com>
     [not found]           ` <YI/cJ6q7Zgw9fCHr@idiocy.org>
     [not found]             ` <7B3D9FF8-ED16-4D1F-84FF-3F900FD8DB0F@it.uc3m.es>
2021-05-03 17:49               ` Alan Third

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAPoMwp32JRSLtQy4iFddu3tnVpq+KpRd=asc6=u6RfCLeXrMQw@mail.gmail.com' \
    --to=paranda@it.uc3m.es \
    --cc=48157@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    /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.
Code repositories for project(s) associated with this public inbox

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

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).