From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: NS/Appkit: frame visibility and application activated Date: Tue, 3 Aug 2010 15:46:16 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280864790 6825 80.91.229.12 (3 Aug 2010 19:46:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2010 19:46:30 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 03 21:46:28 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OgNRU-0002Yj-1n for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2010 21:46:28 +0200 Original-Received: from localhost ([127.0.0.1]:55529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgNRT-0006pa-1O for ged-emacs-devel@m.gmane.org; Tue, 03 Aug 2010 15:46:27 -0400 Original-Received: from [140.186.70.92] (port=43635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgNRJ-0006lX-7Y for emacs-devel@gnu.org; Tue, 03 Aug 2010 15:46:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgNRE-0002Ky-9N for emacs-devel@gnu.org; Tue, 03 Aug 2010 15:46:17 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:60751) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgNRE-0002Kt-6d for emacs-devel@gnu.org; Tue, 03 Aug 2010 15:46:12 -0400 Original-Received: by vws16 with SMTP id 16so3903216vws.0 for ; Tue, 03 Aug 2010 12:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=mRCToX8I5gWLw8bDcRJ+HXXHLN44GuNyCisqBrxq+cM=; b=JZTVWmgdWO+pzYqHFlku5vYdpV/b738atrbylcg1O2Qeeo2MwJXor0MGZlpuPECjxx aWvbdRjtnCLVksLQAPqpazW5ygFy2h9wuR4S/e10w8gFT1LFI0jcKUfDTK6fS2e94zl/ kqvzXlderDe0m4fSrLxEetY+EdQFTU3Ml3Rn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=UU8yLVJL3yUAIlWXBJ4FD1rSRVehrKPzLFM3qVsaW7rjRFBoAZtrEOdaoHiLaeIL/R HvtaY1rhBLTCo/E99gTDgZRDLec1efrYnEfwYPdLT5t9oxUTLwR0LYcJjETUYe7eTBrd rZbIgleH7/ZwnB3VbPRkNv4TviqVCrQqYMj6I= Original-Received: by 10.220.126.130 with SMTP id c2mr5617637vcs.25.1280864770861; Tue, 03 Aug 2010 12:46:10 -0700 (PDT) Original-Received: from elin.psy.cmu.edu (ELIN.PSY.CMU.EDU [128.2.248.190]) by mx.google.com with ESMTPS id s20sm3700526vcr.28.2010.08.03.12.46.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Aug 2010 12:46:10 -0700 (PDT) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128203 Archived-At: After doing (make_frame_invisible nil t) on the only visible frame, and = then switching the application away and back again to Emacs, - the NS port makes the frame visible, while - the Mac/Appkit port doesn't make the frame visible. The latter is the desired behavior. In the NS port, the frame seems to be made visible (ordered in front) by = the system, after the application receives the = applicationWillBecomeActive: message, and despite my best efforts, I = haven't figured out why that is, or why the Appkit port gets it right. = There is a "needsOrderFrontOnUnhide" flag for each frame, but that seems = to apply only during Unhide, not in ApplicationActivated situations.