From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#25818: 25.2; frame moved off display does not return (OS X) Date: Sat, 29 Apr 2017 15:51:11 +0100 Message-ID: <20170429145111.GA88258@breton.holly.idiocy.org> References: <59046B35.1010808@gmx.at> <39f502e9-7b31-a250-c964-8977689cad9b@aurox.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1493477532 6877 195.159.176.226 (29 Apr 2017 14:52:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2017 14:52:12 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Anders Lindgren , 25818@debbugs.gnu.org To: "Charles A. Roelli" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 29 16:52:06 2017 Return-path: 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 ) id 1d4TjB-0001eM-Qt for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Apr 2017 16:52:06 +0200 Original-Received: from localhost ([::1]:41378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4TjH-00082B-Et for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Apr 2017 10:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4TjB-0007wh-Dw for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 10:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4Tj8-0003Xf-9H for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 10:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4Tj8-0003XZ-4M for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 10:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4Tj7-0004DY-KX for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2017 10:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Apr 2017 14:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25818-submit@debbugs.gnu.org id=B25818.149347748316167 (code B ref 25818); Sat, 29 Apr 2017 14:52:01 +0000 Original-Received: (at 25818) by debbugs.gnu.org; 29 Apr 2017 14:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:46466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4TiV-0004Cg-2A for submit@debbugs.gnu.org; Sat, 29 Apr 2017 10:51:23 -0400 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:38446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4TiT-0004CU-Dl for 25818@debbugs.gnu.org; Sat, 29 Apr 2017 10:51:21 -0400 Original-Received: by mail-wm0-f52.google.com with SMTP id r190so68984305wme.1 for <25818@debbugs.gnu.org>; Sat, 29 Apr 2017 07:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4pf43MA0ttGHsjH/pGabJpNeUpuF/Uedo7fJY99dFLo=; b=d4RbYk7S8Odx9oHSBhMcDwhJMuB9CFwd+LBCHFzf87tD2EpZJ3wcx1upvfyZvXLxRN ugIUOXRewQtQsnSiSbC2sOysnRlFuBej3P4nXasph5CJ0qjabOQ1EhKOzsbuQ3wRgjJk HgVXbuO/OOq1Rz1IN3iyTGoSzpXeioK3KnFvXU6bWwn8A0rRHzpXFx9Ok2ADK8igCVuA l9gzwaFMm79qw98umjSFZrohBMIieL2ltANZvyuiQwUwXc3R5bsZwiGOmUh65VzHlfR6 cGJq/oDMSQNLcbMmNINxRTEqv458+pTpe7Mw0CidyPjCuB6cc56GmDN2zk+wlFq0LFKf d72Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=4pf43MA0ttGHsjH/pGabJpNeUpuF/Uedo7fJY99dFLo=; b=MMCTsecqPmLaI0SrsX9S5JradqClFC7Qxam8wJ2uTcXxG/xhmJXz6SvOA6zful16/z EsWfv4ToCRN7B07xBhrba2t3e2eVLgfpGX4wS5I4Y/4wXUa2uEvS6OKuTSsp2xWw/MHT ZZDuJLoLNkC08nKTGyyxb8fc5AtYVSAJ9Tt3DAsLXSQ3A2nDPCeIXj+D6ENPQj8Czo5q +vh6VGp6i3edrhq6HMNT1cWS068hF0AUJGshkl08S662oWAb0QY3In2lBlqFDFnENVAt 4Oiwm1jWVwrkKbh4UlIp8m9ofdt/+B7o2uuXMm575s2uDM5xU218RueYfD/a2iQI4n/w 0CHw== X-Gm-Message-State: AN3rC/78ktkEPQ8zVHhTCOana90+N5IO/5vLzfxTn2sqC76uhiaL2Pkh oZ8I7ZRpkO6+Bg== X-Received: by 10.28.10.1 with SMTP id 1mr2018568wmk.84.1493477475489; Sat, 29 Apr 2017 07:51:15 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-50f6-0664-c41f-3461.holly.idiocy.org. [2001:8b0:3f8:8129:50f6:664:c41f:3461]) by smtp.gmail.com with ESMTPSA id u4sm7636231wmu.0.2017.04.29.07.51.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Apr 2017 07:51:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: <39f502e9-7b31-a250-c964-8977689cad9b@aurox.ch> 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132104 Archived-At: On Sat, Apr 29, 2017 at 01:15:10PM +0200, Charles A. Roelli wrote: > My updated patch takes into account the case where "Spaces" is off or > unavailable -- if you read the part above what I added: > > #ifdef NS_IMPL_COCOA > #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 > // If separate spaces is on, it is like each screen is independent. There > is > // no spanning of frames across screens. > if ([NSScreen screensHaveSeparateSpaces]) > { > NSTRACE_MSG ("Screens have separate spaces"); > frameRect = [super constrainFrameRect:frameRect toScreen:screen]; > NSTRACE_RETURN_RECT (frameRect); > return frameRect; > } > #endif > > there is nothing there to prevent a child frame from being constrained -- so > I will need input from somebody else on that. I think the screensHaveSeparateSpaces setting makes each monitor a completely independent screen, so you won’t run into the problems you have in the normal set‐up where a frame might span two monitors. Therefore I think we could just add a check for whether it’s a child frame, and if so, don’t constrain it at all. -- Alan Third