Re: FVWM: 2.5.5: maximize + focus policy

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 29 Dec 2002 00:45:43 +0000

On 28 Dec 2002 13:18:46 +0100, f.kater_at_gmx.net wrote:
>
> 2.) maximize
>
> I made my own xpm images and replaced the maximize function with my own
> (which is actually a ResizeMove action because I've got my FvwmTaskBar
> on *top* of the screen and so the built in maximize would always place
> the window on the 0,0 position and cover the TaskBar).

Use "EWMHBaseStruts 0 0 30 0" in 2.5.5 for the internal Maximize to work
like you want.

> My question: I'd like to make a maximized window borderless. That should
> word with AddToDecor somehow - but how can I toggle this back to the
> original state? I am thinking of a conditional command which calls two
> different decors when I press the maximize button of a window but how
> could I do that?

I would not do this with decors, I would use "Next (XCalc) Style $n ...".
This potentially changes the appearance of all windows with this name, but
you can't do anything about this until we have individual window styles.
It works pretty well in most of situations.

I copy the following text from my message to this list on October 2002
(with small change, in 2.5.5 "NoBorder" syntax was changed to "!Borders"):

====

It is possible to do with 2.4.x too, but the if-else is tricky in 2.4.x
and additionally BorderWidth should be hadcoded and handles are forced:

  DestroyFunc MaximizeFullScreen
  AddToFunc MaximizeFullScreen
  + I Style $n NoTitle, NoHandles, BorderWidth 0
  + I UpdateStyles
  + I WindowId "$w" Maximize true

  DestroyFunc UnmaximizeFullScreen
  AddToFunc UnmaximizeFullScreen
  + I WindowId "$w" Maximize false
  + I Style $n Title, Handles, BorderWidth 5

  Key F11 A SC Pick MaximizeFullScreen
  Key F12 A SC Pick UnmaximizeFullScreen

2.5.x has no such problems (except that individual styles would not hurt):
  
  DestroyFunc MaximizeFullScreen
  AddToFunc MaximizeFullScreen
  + I ThisWindow (Maximized) Style $n Title, Borders
  + I CondCase (NoMatch) Style $n !Title, !Borders
  + I CondCase (NoMatch) Raise
  + I CondCase (NoMatch) UpdateStyles
  + I Maximize

  Key F11 A SC Pick MaximizeFullScreen

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Dec 28 2002 - 18:47:08 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST