]> Dogcows Code - chaz/openbox/blobdiff - openbox/geom.h
Pick the monitor most relevant to a rectangle more cleverly.
[chaz/openbox] / openbox / geom.h
index 003b0081dbe9f8221df8961db0eb4eeb02e5aae7..8ac0e550830980d4ea05f612389155278cb891ce 100644 (file)
@@ -65,6 +65,8 @@ typedef struct _Rect {
 #define RECT_RIGHT(r) ((r).x + (r).width - 1)
 #define RECT_BOTTOM(r) ((r).y + (r).height - 1)
 
+#define RECT_AREA(r) ((r).width * (r).height)
+
 #define RECT_SET_POINT(r, nx, ny) \
     (r).x = (nx), (r).y = (ny)
 #define RECT_SET_SIZE(r, w, h) \
This page took 0.022329 seconds and 4 git commands to generate.