Hello all,
[Recent convert from Window Maker here! :D Other window managers may be
prettier than Fvwm, but I've come to realize that *feel* is really what
counts. Kudos to everyone who's worked on this fine project; I think I'll
be sticking with it for a long time to come]
I'm building my own perfect .fvwm2rc file, and would like to have windows
lose their borders/handles when they are maximized. (Both to disable
resizing in an obvious way, and to free up a tad more screen space)
So, as far as I could grok the man page, the way to do this would be with
a decor. The maximize function is thus:
DestroyFunc FuncMaximize
AddToFunc FuncMaximize
+ I Current (!Maximized) ChangeDecor DecorMaximized
+ I Current (Maximized) ChangeDecor Default
+ I Maximize
But then, I run into trouble declaring the decor. Below is the code I have
so far:
# Maximized windows will have no borders or handles
#
DestroyDecor DecorMaximized
AddToDecor DecorMaximized
+ Style StyleMaximized UseDecor Default, BorderWidth 0, NoHandles
This fails in at least four ways, which are detailed below. If anyone
knows what I'm doing wrong above, or perhaps can think of a better way of
doing this altogether, I'd greatly appreciate hearing from you!
Sincerely,
--Danny
1. BorderWidth and NoHandles are accessible only in a Style command, and
Style is not permitted in a decor definition. (The man page says this,
somewhat indirectly, in the AddToDecor section---but the example given
contradicts that. Bug?). Fvwm complains, and effectively executes the
Style command immediately. (If I replace "StyleMaximized" with "*" then
all windows, maximized or not, lose their borders)
2. "Style" appears to be a bad way of implementing the "borderless
maximize" functionality, because its scope can only be specified by a
window name/class/resource---it cannot be applied to *one specific window*
and no other. If I maximize an XV window, say, and start up another XV
instance elsewhere, the second XV window should have borders!
3. DecorMaximized, as given above, doesn't seem to inherit the effects of
the large number of "Style *" and other ____Style commands that precede
it. Right now, when I maximize a window, the window decorations take on a
distinctly uncustomized look. How do I make DecorMaximized inherit
everything from the Default decor?
4. Even if I jury-rig the first snippet of code to use "Style $n" to
assign "BorderWidth 0 ..." to the maximized window, the borderless window
does not fill the entire screen---it leaves a space at the right and
bottom edges that is twice the normal BorderWidth. Fvwm doesn't seem to be
taking into account the changed dimensions of the window. (Would some
invocation of Recapture do the trick here? How?)
Daniel Richard G.
<skunk_at_graphics.lcs.mit.edu>
MIT Computer Graphics Group
--
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 Thu Oct 11 2001 - 02:09:28 BST