summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-07 08:53:07 +0000
committerDana Jansens <danakj@orodu.net>2003-04-07 08:53:07 +0000
commitd963ae89a3cbae13de7c28a0564880ac3422a5a8 (patch)
treecf188d9ffc50e26ab8943ae5f5a816454e1adf32
parent91f2c11af0b7012c747aa6fe101e448ea9842034 (diff)
add comment about the two different area Rects
-rw-r--r--HACKING8
1 files changed, 8 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 6cc4f52f..56cca150 100644
--- a/HACKING
+++ b/HACKING
@@ -5,3 +5,11 @@ which is not a valid pointer. You must ALWAYS check for TRAN_GROUP before
following transient_for. When TRAN_GROUP is found, Client.group will always
be !NULL. Some smart action should be taken using all members of the group in
this case.
+
+When using coordinates/sizes of windows, make sure you use the right area. The
+Client.area rect is the reference point and size of the *CLIENT* window. This
+value is not what you see in any shape or form, and gravity is applied to it to
+translate it into what you see. The Client.frame.area is the actual position
+and size of the entire frame. This is usually the value you want to use, unless
+you are in client.c (probably) and adjusting/using the position or size from
+the client's perspective.