GNU bug report logs - #16097
Treat windows on other spaces as not visible in Cocoa

Previous Next

Package: emacs;

Reported by: David Benjamin <davidben <at> google.com>

Date: Tue, 10 Dec 2013 02:03:01 UTC

Severity: minor

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Benjamin <davidben <at> google.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Treat windows on other spaces as not visible in Cocoa
Date: Mon, 9 Dec 2013 20:42:22 -0500
[Message part 1 (text/plain, inline)]
Here's a patch for something that's been bugging me. This makes Cmd-` cycle
through only the current space's windows, which is consistent with other
programs on OS X. It also matches the behavior of other-frame on X11 for
window managers that implement virtual desktops by mapping and unmapping
windows. The patch is attached.

It's not perfect; if you go into Mission Control or so and move a window
onto another space without switching spaces, it won't notice until you
switch spaces again. I wasn't able to find a notification to listen to;
it'd be nice to replace the visible field in a frame with some virtual call
that, in Cocoa, would just call out to [win isVisible] and [win
isOnActiveSpace], but that'd be a more invasive change. It also doesn't fix
the behavior where closing the last window on a space warps you to a window
on another space. I'm not sure yet what's causing that.

As far as copyright goes, if this is a large enough change to matter (a
decent chunk of the diff is just moving some code around), I'm a Google
employee. I'm told we already have an agreement on file with the FSF.

David Benjamin
[Message part 2 (text/html, inline)]
[0001-In-nsterm-update-frame-visibility-on-space-change-an.patch (application/octet-stream, attachment)]

This bug report was last modified 1 year and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.