[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fvwm
Subject:    Re: FVWM: Implementing a 'full screen' function
From:       Dominik Vogt <dominik.vogt () gmx ! de>
Date:       1999-12-16 20:39:03
[Download RAW message or body]

On Sat, Dec 04, 1999 at 11:46:07AM +0100, josvanr wrote:
> Hi
> 
> I'd like to make an Fvwm function to make a window resize
> to 'full screen'. For this I need to do two things: 1)
> remove the title bar using Style "thewin" NoTitle, 2) Maximize
> the window. I'd like to put this function under a key.
> 
> Now the problem: how do I pass the resource string $r of the 
> window that has the focus, to a function? Just using $r like 
> this: Style "$r" NoTitle doesn't seem to work.

You have to remove the quotes around th $r. This works for me:

  key f12 w a Function Fullimize
  AddToFunc Fullimize
  + I Style $r notitle
  + I Recapture
  + I Maximize

Note that for now you need the 'Recapture' after the style line
because the style is not applied immediately but only when fvwm
has nothing else to do.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt@gmx.de
Reply-To: dominik.vogt@gmx.de
--
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@fvwm.org.
To report problems, send mail to fvwm-owner@fvwm.org.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic