]> Dogcows Code - chaz/openbox/blobdiff - plugins/resistance.c
typo
[chaz/openbox] / plugins / resistance.c
index 3d6c4dc1565ae38c728e248651fe62b63f58d5e0..24e291a049b8d70becaef1581670f2d5da0763d2 100644 (file)
@@ -5,6 +5,10 @@
 #include "../kernel/screen.h"
 #include <glib.h>
 
+void plugin_setup_config()
+{
+}
+
 static int resistance = 10;
 static gboolean window_resistance = TRUE; /* window-to-window */
 
@@ -38,7 +42,8 @@ static void resist(Client *c, int *x, int *y)
             int tl, tt, tr, tb; /* 1 past the target's edges on each side */
 
             target = it->data;
-            if (target == c) continue; /* don't snap to self */
+            /* don't snap to self or non-visibles */
+            if (!target->frame->visible || target == c) continue; 
 
             tl = target->frame->area.x - 1;
             tt = target->frame->area.y - 1;
This page took 0.021602 seconds and 4 git commands to generate.