Re: as 1.7.126 regressive behavior

Ethan (
Tue, 3 Aug 1999 02:09:28 -0700 (PDT)

On Tue, 3 Aug 1999, Mark Schreiber wrote:
> Is it possible for xv (or any other X program) to ask afterstep (or any
> other wm) for the total size of all the goodies hanging off the windows?
> That would be the titlebar, the frame, and everything else added together.

Yes, this is possible, albeit difficult to do safely.  The problem with 
xv is that it was written with the intention of being full screen when 
the image it contains is full screen.  Client windows (such as xv) can 
specify a bit gravity, which tells AfterStep how to place the frame 
(client + titlebar + lowbar + etc).  xv uses StaticGravity, which is 
defined as:

#define StaticGravity  10 /* don't move relative to root origin */

When resizing, xv requests to be placed at (0,0), and AfterStep (as it 
should) adds the titlebar above that.  Most apps don't specify an (x,y) 
while resizing, and also use NorthWestGravity, either of which would 
solve this problem.

Ethan Fischer