Circa 2001-Feb-16 14:52:29 -0500 dixit [EMAIL PROTECTED]:

: I was wondering if there is a "snap to" feature for windows to either
: tie them together. I.e., Netscape windows open up on top of
: themselves, and align to themselves. Mozilla windows do not.

The reason for the effect you observe is that Netscape has a setting in
the window manager size hints on its top-level windows called
program-specified position" (or PPosition).  It's not a requirement for
window managers to pay attention to the PPosition, but many do.
Unfortunately, most programs based on Motif specify a PPosition (many
specify on of 0,0---the upper lefthand corner of the screen), and, in
most window managers, it overrides any window-placement setting you
have (e.g., "smart", "cascading", or "interactive").

The reason Mozilla doesn't exhibit the behavior, obviously, is that it
doesn't set the PPosition field in WM_SIZE_HINTS.  If you want Mozilla
windows to behave the same as Netscape windows do, you may be able to
use the '-geometry' option or the '.geometry' resource to specify the
position at which to place windows.  See the X manual page ('man X')
for further explanation, and the Mozilla documentation to see whether
it's possible.

: I like this feature; I think it lends itself to a clean desktop. I
: was just wondering if this feature or one like it exists, so I don't
: have to oh-so-carefully try to move my windows to overlap perfectly.

I suspect you're in a minority.  Many folks don't seem to like
program-specified positions and prefer the window manager ignore them
and follow its placement algorithm.

If you like this sort of window placement, however, you can use
'-geometry' bzw. '.geometry' with most X applications.  Knock yourself
out.

: I'd also like to be able to snap windows to the edge of the screen
: in a similar fashion.

From the manual page for blackbox-0.61.1:

  RESOURCE FILE
         Usually  the  ~/.blackboxrc  resource  file is created and
         maintained bij Blackbox  itself.   All  options  from  the
         [config]  menu  (from  0.60.x on), the last selected style
         file, your workspace names and so on are saved  into  this
         file.   However,  there are some resources in it you might
         want to edit yourself:
  
  [...]
  
         session.screen0.edgeSnapThreshold:
                When moving a window across your  screen,  Blackbox
                is  able  to  have  it  `snap'  to the edges of the
                screen for easy  placement.   This  variable  tells
                Blackbox the distance (in pixels) at which the win­
                dow will jump to the egde.  Default value is: 0.

Looks like that's already there too.  :)

-- 
jim knoble | [EMAIL PROTECTED] | http://www.jmknoble.cx/

Reply via email to