Closed notuntoward closed 3 years ago
Thank you for providing nice information but previously I've discovered such approach rely on frame-parameter
and modify-frame-parameters
and it was not good to control frame position and size. I'll revisit the approach and adopt if it will not break existing APIs.
Bad news. The proposed command is not valid in my environment. As I commented in #17, the issue highly depends on user environment...
I'll close this issue because I still see some spaces between frame and screen even if the proposed commands are used for filling width or height, and both in my environments. Additionally, the fullscreen
parameter on modify-frame-parameters
with fillwidth
or fillheight
shall be changed to nil
before calling existing APIs in moom otherwise parameter fullscreen
will not be changed. So relying on modify-frame-parameters
is not good choice for moom. I'm not sure how many patterns of moom-user-margin
are observed in your side, but I hope the number is quite a little.
I have added some modifications which include an update on calculation of active region in a monitor. I'm not sure the change can resolve your issue but it is worth to try the latest version 1.4.20 in you side.
I just tried out v1.4.12 on a couple different computers and monitors. As I guessed, it would be necessary to adjust the margins differently for different monitor resolutions (#17 ).
However, I discovered that emacs internal functions make it possible to avoid the need to set margins at all. Below are two hacked versions of
toggle-frame-fullscreen
for toggling frame height and width. They're not perfect -- they get mildly confused when mixing fullscreen, height and width toggling -- but they do always position and size the frame correctly, regardless of monitor.And...