Open emysliwietz opened 4 years ago
That command needs a partial rewrite. Moreover, we should standardize how the various commands identify the "current X window"; right now we have a mix of window-buffer
and (derived-mode-p 'exwm-mode)
.
In general, if you want to invoke a command in the same way it would be invoked by a key binding you should use:
(call-interactively 'exwm-layout-toggle-fullscreen)
You can use that as a workaround.
Please, leave the ticket open, so that we remember to improve these commands.
Thank you. Not sure if this warrants another issue, so I'll just ask here:
Hello @emysliwietz, yes, please, open a new ticket. I think the requests are kind of edge cases but, why not?
A function such as the following has no effect, while invoking
exwm-layout-toggle-fullscreen
manually using M-x does set the window to fullscreen (or ends fullscreen). Interestingly,exwm-layout-set-fullscreen
does work when invoked like this.I'm not sure if I'm missing some part of the documentation. The correct window is focused, otherwise
exwm-layout-set-fullscreen
wouldn't work.My goal is to provide a shortcut to toggle the current buffer into fullscreen that works for both exwm and text buffers.