projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
921a711
)
syntax error!
author
Dana Jansens
<danakj@orodu.net>
Fri, 21 Mar 2003 09:38:51 +0000
(09:38 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 21 Mar 2003 09:38:51 +0000
(09:38 +0000)
plugins/resistance.c
patch
|
blob
|
history
diff --git
a/plugins/resistance.c
b/plugins/resistance.c
index c7f47c3e07bdec1c907fa0d7dd052805109982e6..36fe269e28701a01b68e63acd236f1cbceb999ed 100644
(file)
--- a/
plugins/resistance.c
+++ b/
plugins/resistance.c
@@
-38,8
+38,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
*/
- if (
!target->visible) continue; /* don't snap to non-visibles */
+
/* don't snap to self or non-visibles
*/
+ if (
target == c || !target->frame->visible) continue;
tl = target->frame->area.x - 1;
tt = target->frame->area.y - 1;