Re: FVWM: constraining "maximized" window to some portion of the screen

From: Denis Perelyubskiy <denisp_at_CS.UCLA.EDU>
Date: Thu, 15 Nov 2001 09:39:06 -0800

  * Dominik Vogt <dominik.vogt_at_gmx.de> [10-Nov-01 13:24 -0800]:
>
>On Thu, Oct 18, 2001 at 08:51:55PM -0700, Denis Perelyubskiy wrote:
>> * Dominik Vogt <fvwm_at_fvwm.org> [15-Oct-01 03:20 -0700]:
>> >
>> >On Sun, Oct 14, 2001 at 06:20:32PM -0700, Denis Perelyubskiy wrote:
  [...]
>> # (screen height - 150 pixels) at bottom of screen
>> AddToFunc MaximizeAtBottom
>> + "I" Maximize $0 $1
>> + "I" Move -0 -0
>>
>> MaximizeAtBottom 100 -90p
>>
>> the problem now, however, is that once i maximize the
>> window, it is fine, but once i click my button to
>> de-maximize it, it stays with its lower-right corner in the
>> lower-right portion of the screen. this makes sense, since
>> that's exactly what Move -0 -0 did.
  [...]
>Ah, I see. If you bind that function to the window buttons, the
>"Move" part is also executed when you unmaximize the window. Try
>this one instead:
>
> # (screen height - 150 pixels) at bottom of screen
> AddToFunc MaximizeAtBottom
> + "I" Maximize $0 $1
> + "I" WindowId $w (maximized) Move -0 -0
>
> MaximizeAtBottom 100 -90p

ah, thanks. that works just like i would like it to :)

denis

-- 
// mailto: Denis Perelyubskiy <denisp_at_CS.UCLA.EDU>
// icq   : 12359698
// PGP   : http://www.cs.ucla.edu/~denisp/files/pgp.asc
--
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 Nov 15 2001 - 11:39:19 GMT

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