Can I set desktop margins to limit window resizing?

Booting, installing, newbie
Post Reply
Message
Author
chris
Posts: 24
Joined: Wed 23 May 2007, 23:31
Location: Australia

Can I set desktop margins to limit window resizing?

#1 Post by chris »

I'm using wbar and JWM and I'd like to set desktop margins so that when I maximize an application window, wbar doesn't get hidden beneath the window. Can this be done with some desktop parameter or faked in some other way?

ljfr
Posts: 176
Joined: Thu 23 Apr 2009, 08:35

fake it with an empty tray

#2 Post by ljfr »

Hi,
I don't know a direct parameter to do this but you can fake this behavior by building an empty tray in jwm,
follow this guide:
http://www.murga-linux.com/puppy/viewtopic.php?t=46829
but use an empty tray, i.e a /root/.jwmrc-tray-top file lie this one:

Code: Select all

<JWM>
  <Tray autohide="false" insert="right" valign="top" halign="center" border="0" height="40">
</JWM>
or if you want to put wbar at the bottom:

Code: Select all

<JWM>
  <Tray autohide="false" insert="right" valign="bottom" halign="center" border="0" height="60" layer="9" >
</JWM>
tweak the height value at your convenience, if you want to put wbar on the right or on the left, you would have to slightly change the valign, halign parameters, and insert a new one: layout="vertical", look at other jwm paramter in the documentation:
http://joewing.net/programs/jwm/config.shtml

regards,

chris
Posts: 24
Joined: Wed 23 May 2007, 23:31
Location: Australia

#3 Post by chris »

Thanks ljfr :!: I'll give it a try.

EDIT: works like a charm 8)

Post Reply