Open emacsomancer opened 4 years ago
I pretty certain that force
doesn't help (though we'd have to check different Emacs versions, I imagine): it's not an issue of the frame not becoming invisible, but an issue of the visibility property not being properly set on the first invocation. That is, the problem is that the first call of (make-frame-invisible current-frame)
makes the frame invisible, but doesn't mark it as invisible: i.e. frame-visible-p
still reports it as being visible. The second call of (make-frame-invisible current-frame)
ends up setting the property correctly.
In GitLab by @artemyurchenko on Aug 17, 2020, 03:50
There are three lines in the code:
I wonder, if setting the
force
parameter ofmake-frame-invisible
would remove the need for double invocation.Documenting to experiment later.