$OpenBSD: patch-lib_awful_mouse_init_lua_in,v 1.1 2011/07/06 09:58:16 dcoppa Exp $

Don't move clients with fixed positions
(upstream git commit 45576b6c6f8255e979187b034a73385d508c9223)

--- lib/awful/mouse/init.lua.in.orig	Mon May 16 16:35:17 2011
+++ lib/awful/mouse/init.lua.in	Wed Jul  6 11:07:09 2011
@@ -147,14 +147,14 @@ function client.snap(c, snap, x, y, fixed_x, fixed_y)
         end
     end
 
-    -- It's easiest to undo changes afterwards if they're not allowed
-    if fixed_x then geom.x = cur_geom.x end
-    if fixed_y then geom.y = cur_geom.y end
-
     geom.width = geom.width - (2 * c.border_width)
     geom.height = geom.height - (2 * c.border_width)
     geom.x = geom.x + (2 * c.border_width)
     geom.y = geom.y + (2 * c.border_width)
+
+    -- It's easiest to undo changes afterwards if they're not allowed
+    if fixed_x then geom.x = cur_geom.x end
+    if fixed_y then geom.y = cur_geom.y end
 
     return geom
 end
