]> Dogcows Code - chaz/openbox/blobdiff - openbox/geom.h
Use the KeyCode to directly find the modifier mask. (Fix bug 5173)
[chaz/openbox] / openbox / geom.h
index bdcd3c55ba416a417e64187ff76cbddf2157be64..003b0081dbe9f8221df8961db0eb4eeb02e5aae7 100644 (file)
@@ -23,7 +23,8 @@
 #include <glib.h>
 
 typedef struct _GravityCoord {
-    int pos;
+    gint pos;
+    gint denom;
     gboolean center;
     gboolean opposite;
 } GravityCoord;
@@ -160,6 +161,6 @@ typedef struct _StrutPartial {
      (s1).bottom_end == (s2).bottom_end)
 
 #define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \
-    (r1x < r2x + r2w && r1x + r1w > r2x)
+    (r1w && r2w && r1x < r2x + r2w && r1x + r1w > r2x)
 
 #endif
This page took 0.022195 seconds and 4 git commands to generate.