summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-21 11:39:20 +0200
committerMC <mc@hack.org>2010-06-21 11:39:20 +0200
commit7d13534fecc65650972782805413157e826d6397 (patch)
tree5644c10b137c14f086b9bb29ac8dd5eb7a42dbc0 /mcwm.c
parentd306f511ac1569e409dcb3c5276e98bfd3820908 (diff)
downloadmcwm-7d13534fecc65650972782805413157e826d6397.zip
Quote ICCCM.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcwm.c b/mcwm.c
index 77b718f..11fe0b2 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -686,6 +686,22 @@ void mouseresize(xcb_drawable_t win, int rel_x, int rel_y)
/*
* Get the window's incremental size step, if any, and use that
* when resizing.
+ *
+ * FIXME: Do this right. ICCCM v2.0, 4.1.2.3. WM_NORMAL_HINTS
+ * Property says:
+ *
+ * The base_width and base_height elements in conjunction with
+ * width_inc and height_inc define an arithmetic progression of
+ * preferred window widths and heights for nonnegative integers
+ * i and j:
+ *
+ * width = base_width + (i × width_inc)
+ * height = base_height + (j × height_inc)
+ *
+ * Window managers are encouraged to use i and j instead of
+ * width and height in reporting window sizes to users. If a
+ * base size is not provided, the minimum size is to be used in
+ * its place and vice versa.
*/
if (!xcb_get_wm_normal_hints_reply(
conn, xcb_get_wm_normal_hints_unchecked(conn, win), &hints, NULL))