From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Aaron Jensen <aaronjensen@gmail.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#28443: 26.0.50;
	Pause when fullscreening when ns-use-native-fullscreen is nil on macOS
Date: Wed, 13 Sep 2017 12:33:48 -0700
Message-ID: <CAHyO48xj1un_T=vRs0=FfRnzcfyXRMBM1ad1APHJ8oU_cUnatQ@mail.gmail.com>
References: <m2ingm23re.fsf@gmail.com>
	<20170913192737.GA31742@breton.holly.idiocy.org>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1505331255 31142 195.159.176.226 (13 Sep 2017 19:34:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 13 Sep 2017 19:34:15 +0000 (UTC)
Cc: 28443@debbugs.gnu.org
To: Alan Third <alan@idiocy.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 13 21:34:10 2017
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1dsDQG-0007wW-ME
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 21:34:08 +0200
Original-Received: from localhost ([::1]:44296 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1dsDQO-0001oL-1m
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 15:34:16 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35543)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dsDQD-0001mk-Hk
	for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 15:34:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dsDQA-0001Tf-FX
	for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 15:34:05 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:58398)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1dsDQA-0001TZ-C1
	for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 15:34:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dsDQA-00015G-4d
	for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 15:34:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Aaron Jensen <aaronjensen@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 13 Sep 2017 19:34:02 +0000
Resent-Message-ID: <handler.28443.B28443.15053312364156@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 28443
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
Original-Received: via spool by 28443-submit@debbugs.gnu.org id=B28443.15053312364156
	(code B ref 28443); Wed, 13 Sep 2017 19:34:02 +0000
Original-Received: (at 28443) by debbugs.gnu.org; 13 Sep 2017 19:33:56 +0000
Original-Received: from localhost ([127.0.0.1]:38846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1dsDQ4-00014x-Gy
	for submit@debbugs.gnu.org; Wed, 13 Sep 2017 15:33:56 -0400
Original-Received: from mail-qk0-f176.google.com ([209.85.220.176]:48026)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <aaronjensen@gmail.com>) id 1dsDQ3-00014l-37
	for 28443@debbugs.gnu.org; Wed, 13 Sep 2017 15:33:55 -0400
Original-Received: by mail-qk0-f176.google.com with SMTP id b82so2962600qkc.4
	for <28443@debbugs.gnu.org>; Wed, 13 Sep 2017 12:33:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-transfer-encoding;
	bh=6zPwdXKfP/8YjVmakFzUgwhMk2TBWOzT9Ai3EU0FfX4=;
	b=j8dax9beqo/hze3hQ90lfL4Bd7F0/7bg/UL4ax7szMe6tjI0XrGDO/GCWQetIs6a5A
	ZAZcq1LKpkmJ8DpJD4faN6X+EA7Ob8AjEnSCvzxb7zNPXOKKC1veAEzS6zoO1aZBpPuo
	OuTltGOU9QiXi2adxxmAp7+CUuUxITRcUViN5jdm+I9aou4nCkOuIsyHlZDQjI64HApe
	NT6urvYYMhUV6dutIai6csJJRQDS7qYOpfuu1updR5ZTwgD7M2w+R7ce9dxYQNLMPDGU
	XZuz1iTnr1Fm5gu9iUK/AcWrcbKwVZX7BQwR8RBiANSbdpkHVNHopa+vV5dxf7CClRzc
	jSDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-transfer-encoding;
	bh=6zPwdXKfP/8YjVmakFzUgwhMk2TBWOzT9Ai3EU0FfX4=;
	b=THo4vh14vr0nsmfROYirep8na0xFT4hMhk+TxB+KnlluYHJaTApFL2YmJwl6gWlQVu
	Gx46rpw9OrTD/WijOgdSjI3kBXRIadzuWNjQKMIj8qwxCgVDWMUo1vQ41joQhsMVupEo
	quPMcUqewM0+EFrXCbmMbq/ODP227PP2mZaQZfJ7KDgaAy1cDc4z+CLlElOK/HZeMNNF
	j/+yQ1AyzQ7RvRQY8oxjRJj4969KLl5kZZjsYVchkLxUUrRwnbU+bCblTRuYV/9A+kLI
	EkMeU0OpYVgeFBYcAOyog/TNmcTImmrgDkorPgW6Xb449H4J8JbgPRWJKi1I9A1QU4u4
	seZQ==
X-Gm-Message-State: AHPjjUjHbpDfDLIXcHfV1IpNn5O6Y2/SN6h2lH2Dij1kCWSBC8PzvJXq
	D5uYnZ0yV53C1LeClGbMPmUtfYM07SW+YxpRWEaWMg==
X-Google-Smtp-Source: ADKCNb71FXT3pFrLH3+7hOZq0hsuTQ/IyuIuj/E5SY40DQNESFYSndFf8ImvBcH6QuSURPf6tNxRwAPfqWbTpWMlAa8=
X-Received: by 10.55.141.66 with SMTP id p63mr25715275qkd.210.1505331229144;
	Wed, 13 Sep 2017 12:33:49 -0700 (PDT)
Original-Received: by 10.200.61.82 with HTTP; Wed, 13 Sep 2017 12:33:48 -0700 (PDT)
In-Reply-To: <20170913192737.GA31742@breton.holly.idiocy.org>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:136928
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/136928>

On Wed, Sep 13, 2017 at 12:27 PM, Alan Third <alan@idiocy.org> wrote:
> On Wed, Sep 13, 2017 at 05:15:49AM -0700, Aaron Jensen wrote:
>>
>> When ns-use-native-fullscreen is nil and a frame is set to fullscreen,
>> there is a slight pause before the frame goes fullscreen. I believe the
>> pause is about the same length as the animation when native fullscreen
>> is used, so I'm wondering if there's some timing code in there that can
>> be disabled when non-native fullscreen is being used.
>
> Found it. In ns_fullscreen_hook in nsterm.m there is a timer:
>
>       /* Old style fs don't initiate correctly if created from
>          init/default-frame alist, so use a timer (not nice...).
>       */
>       [NSTimer scheduledTimerWithTimeInterval: 0.5 target: view
>                                      selector: @selector (handleFS)
>                                      userInfo: nil repeats: NO];
>
> if I replace the timer with
>
>     [view handleFS]
>
> it works absolutely fine, but I have to assume there are situations
> where it doesn=E2=80=99t.

My guess is that the timer was there to sync w/ the animation. If the
animation is disabled, there shouldn't be a timer, but if it is, there
should be. This is just a guess.

Aaron

> --
> Alan Third