How to set a normal window in FullScreen state

What I want is real fullscreen, all the screen show only the window’s content, no title and bolder.
Can anybody tell me how to realize this?

Heres the function i use to do fullscreen. Just press Alt+F and the focused window will loss its title bar, border and maximize.

###############################
# FVWM-Crystal plugin: Fullscreen
# Written by: Maciej Delmanowski <harnir@linux.net.pl>

# Overview:
# After using this function, current window will lose it's border and title
# and will be maximized to the full screen (wow). After using Fullscreen
# function on a "fullscreened" window it will return to it's previous size and
# position and border/title will be brought back.
###############################

Key F A M Fullscreen

DestroyFunc Fullscreen
AddToFunc Fullscreen
+ I Fullscreen-Stop
+ I Current (!Maximizable) Break
+ I TestRc (False) Fullscreen-Start

DestroyFunc Fullscreen-Start
AddToFunc Fullscreen-Start
+ I Current (State 0) Break
+ I SetEnv OldX-$[w.id] $[w.x]
+ I SetEnv OldY-$[w.id] $[w.y]
+ I SetEnv OldWidth-$[w.id] $[w.width]
+ I SetEnv OldHeight-$[w.id] $[w.height]
+ I Move 0p 0p
+ I Resize 100 100 frame
#+ I Layer 0 5
+ I WindowStyle NoTitle, !Borders, StaysOnTop, !Iconifiable, !Maximizable
+ I State 0 true

DestroyFunc Fullscreen-Stop
AddToFunc Fullscreen-Stop
#+ I Current (!State 0) Break
+ I DestroyWindowStyle
+ I State 0 false
#+ I Layer 0 4
+ I PipeRead "echo ResizeMove \\$\\[OldWidth-$[w.id]\\]p \\$\\[OldHeight-$[w.id]\\]p \\$\\[OldX-$[w.id]\\]p \\$\\[OldY-$[w.id]\\]p"

It seems that the essential of the ideas of us about this question are the same.
here is my code

DestroyFunc FuncFullScreen
AddtoFunc FuncFullScreen
+ I Current (Maximizable, HasHandles,!FixedSize) FuncDoFullScreen Break
+ I Current (FixedSize, Maximized) unFuncFullScreen

DestroyFunc FuncDoFullScreen
AddtoFunc FuncDoFullScreen
+ I Current (!Maximized) Maximize
+ I ResizeMaximize 100 100
+ I WindowStyle NoTitle,HandleWidth 0,FixedSize,FixedPosition

DestroyFunc unFuncFullScreen
AddtoFunc unFuncFullScreen
+ I DestroyWindowStyle
+ I Maximize

It works without any problem on most windows. But the Win4Lin window always cannot occupy the whole screen when in this “FullScreen” mode.
And I consider this as a fake fullscreen. Because obviously,this “FullScreen” mode is different from the fullscreen mode of mplayer or vncviewer.

i want fullscreen when i play mplayer… when i use mplayer and i maximize or fullscreen the windows i still se peaces of the screen of the film on the black strips

I think you really want to just start mplayer thus:

mplayer -fs -zoom .....

– Thomas Adam

no, because i have an autohide panel on the left that is on top of other windows… so, when i fullscreen mplayer in this way, i have a one pixel line on the left

Ok, you might be looking at the “ewmhiwa” hint to Maximize.

– Thomas Adam

I use this:

Key Return A M FuncFvwmMaximizeFullScreen

DestroyFunc FuncFvwmMaximizeFullScreen
AddToFunc FuncFvwmMaximizeFullScreen

  • I ThisWindow (Maximized) WindowStyle Title, Borders
  • I TestRc (!Match) WindowStyle !Title, !Borders
  • I TestRc (!Match) Raise
  • I TestRc (!Match) UpdateStyles
  • I Maximize ewmhiwa

from my config and it’s working very nicely …

Greetings,

Patrick