Re: Win gravity: Diff between ICCCM spec and EWMH
- From: Sasha Vasko <sasha aftercode net>
- To: Davor Buvinic <davor vtr net>
- Cc: wm-spec-list gnome org
- Subject: Re: Win gravity: Diff between ICCCM spec and EWMH
- Date: Fri, 13 Jun 2003 10:21:17 -0500
Davor Buvinic wrote:
I have a question regards window gravity manipulation:
The ICCCM spec (section 4.1.2.3) states the coordinates used to calculate the
win gravity reference point. The explanation is (I think) clear.
But in the implementation notes of the EWMH document (draft January 2003), the
author of the second table apparently is assuming that the coordinate system
is with respect to the inner border of the client window, i.e. for a
configure request that the window manager gets, its need to asume the inner
border is at (x, y). With this, the coordinates of the outer border is (x-bw,
y-bw).
The ICCCM says :
The [x,y] location of the window's upper left-outer corner.
therefore you are right and I am wrong.
The table should look like so :
win_gravity: ref_x: ref_y:
StaticGravity x+bw y+bw
NorthWestGravity x y
NorthGravity x+bw+(width/2) y
NorthEastGravity x+bw+width+bw y
EastGravity x+bw+width+bw y+bw+(height/2)
SouthEastGravity x+bw+width+bw y+bw+height+bw
SouthGravity x+bw+(width/2) y+bw+height+bw
SouthWestGravity x y+bw+height+bw
WestGravity x y+bw+(height/2)
CenterGravity x+bw+(width/2) y+bw+(height/2)
Regards
Sasha Vasko
AFAIK the window manager always gets the configure request with respect the
outer edge of the client window, irrespective if the client window has or not
a border. So, the OUTER border is at (x, y) and the INNER border is at (x+bw,
y+bw). (Of course, if the window manager don't honors the client bw this
doesn't matters).
Is my interpretation of the EWMH correct, or I'm missing something? Excuse me
if this was discussed previously, but I browse the mail archives and I only
found an email from Sasha Vasko which states the formulas that the EWMH now
use.
- Davor
_______________________________________________
wm-spec-list mailing list
wm-spec-list gnome org
http://mail.gnome.org/mailman/listinfo/wm-spec-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]