Re: FVWM: Question on "Maximize"
> Is there a differnce between a window, that was maximized using > "Maximize 100 100" and a window that is maximized by "Move 0 0, Resize > $[vp.width] $[vp.height]" ? The obvious difference is that a Maximize-based maximization can be reversed by fvwm, which remembers the previous window size (this is the common behavior among all window managers; maximization is by default a toggle). Window resizing is not normally reversible. Since you can maximize to sizes other than full screen, you can exploit this for other temporary (re)sizings that preserve the original window size, whatever it is. (If you just want to toggle between two fixed sizes or rotate among a collection of them, you can use Resize instead since you know all of the sizes. Maximize is handy when one of the sizes can vary.) - cks
Re: FVWM: Question on "Maximize"
On Tue, Nov 07, 2017 at 10:09:48AM +0100, Dr. Nikolaus Klepp wrote: > Hi! > > Is there a differnce between a window, that was maximized using "Maximize > 100 100" and a window that is maximized by "Move 0 0, Resize $[vp.width] > $[vp.height]" ? Yes. If you use the Maximize command, then fvwm treats that window as such. With your other example of using "Move", it does not. See also ResizeMoveMaximize. > If there is a difference, how do I pass that "Maximised"-flag to a shell > script? I assume that - while it is working - this is not the best way to do > so: > > + I ThisWindow (!Maximized) PipeRead ~/a/shell/script not_maximized + > I ThisWindow (Maximized) PipeRead ~/a/shell/script maximized That'll work in your case, but you could limit it via State as well. Depends what you're trying to do. Kindly, Thomas
FVWM: Question on "Maximize"
Hi! Is there a differnce between a window, that was maximized using "Maximize 100 100" and a window that is maximized by "Move 0 0, Resize $[vp.width] $[vp.height]" ? If there is a difference, how do I pass that "Maximised"-flag to a shell script? I assume that - while it is working - this is not the best way to do so: + I ThisWindow (!Maximized) PipeRead ~/a/shell/script not_maximized + I ThisWindow (Maximized) PipeRead ~/a/shell/script maximized Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...