$OpenBSD: patch-openbox_moveresize_c,v 1.2 2013/10/08 11:18:58 dcoppa Exp $
--- openbox/moveresize.c.orig	Mon Aug 12 03:33:24 2013
+++ openbox/moveresize.c	Mon Oct  7 18:29:46 2013
@@ -330,6 +330,16 @@ void moveresize_end(gboolean cancel)
 #endif
     }
 
+	if (!moveresize_client) {
+		ob_debug("moveresize_end: moveresize_client is NULL!");
+		return;
+	}
+
+	if (!moveresize_in_progress) {
+		ob_debug("moveresize_end: moveresize_in_progress is FALSE!");
+		return;
+	}
+
     /* don't use client_move() here, use the same width/height as
        we've been using during the move, otherwise we get different results
        when moving maximized windows between monitors of different sizes !
