GNU bug report logs -
#25818
25.2; frame moved off display does not return (OS X)
Previous Next
Reported by: charles <at> aurox.ch (Charles A. Roelli)
Date: Mon, 20 Feb 2017 20:06:02 UTC
Severity: normal
Tags: fixed
Found in version 25.2
Fixed in version 26.1
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi Anders,
Following your idea, here's an updated patch that works equivalently.
Please let me know what you think.
> Anyway, I think that we're on the right track and I appreciate that you
> have taken time to work on this!
My pleasure!
> PS. I just found another, unrelated, problem, when comparing the NS and X11
> versions. When passing a negative value to `set-frame-position' it is
> supposed to place the frame relative to the right/bottom border of the
> display, but in the NS version it doesn't. (The X11 version gets the Y
> placement wrong with 48 pixels, but that is another story.)
Hm... but what if a second display is in the negative coordinate space?
How would you place a frame on it programmatically? In any case I'll
try to build the X11 version and see how it does it -- I wasn't aware
that it still works on Mac OS.
Cheers,
Charles
>> A quick test on 10.6:
>>
>> (setq ns-auto-hide-menu-bar t)
>>
>> ;; Places the frame just above the top of the screen.
>> (set-frame-position (selected-frame) 0 -20)
>>
>> ;; Frame would be completely offscreen; so it's constrained and brought
>> ;; back.
>> (set-frame-position (selected-frame) 0 -10000)
[0001-Constrain-frames-to-visible-area-of-screens-in-OS-X-revised.patch (text/x-patch, attachment)]
This bug report was last modified 8 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.