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

From: Denis Perelyubskiy <denisp_at_CS.UCLA.EDU>
Date: Thu, 18 Oct 2001 20:51:55 -0700

  * 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:
>> hello,
>>
>> is it possible to maximize a window, but so that it only
>> goes up to something like 150 pixels from the top of the
>> page, but takes up the whole width?
>
>I don't exactly understand if you want. Try one of these:
  [...]
> # (screen height - 150 pixels) at bottom of screen
> AddToFunc MaximizeAtBottom
> + I Maximize $0 $1
> + Move -0 -0
> MaximizeAtBottom 0 -150p
  [...]

i wanted almost this, thanks! (i should've looked in the
manual pages more, but Move -0 -0 is a nice trick which i
did not know about)

   # (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.

the question, is whether i can somehow figure out where the
window was positions before executing my MaximizeAtBottom,
and moving the window back?

thanks,

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 Oct 18 2001 - 22:52:21 BST

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