changeset: 1745:d3d7b9557548
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 05 06:00:23 2007 -0500
files: mouse.c
description:
Don't try to insert a frame after itself.
diff -r e97ba41da5d1 -r d3d7b9557548 mouse.c
--- a/mouse.c Mon Feb 05 05:07:26 2007 -0500
+++ b/mouse.c Mon Feb 05 06:00:23 2007 -0500
@@ -223,6 +223,8 @@ find_droppoint(Frame *frame, int x, int
rect->height = f->rect.y - rect->y;
}
if(do_move) {
+ if(frame == f)
+ return;
if(a != frame->area)
send_to_area(a, frame->area, frame);
remove_frame(frame);
@@ -237,6 +239,8 @@ find_droppoint(Frame *frame, int x, int
if(f->anext)
rect->height = (f->anext->rect.y - rect->y);
if(do_move) {
+ if(frame == f)
+ return;
if(a != frame->area)
send_to_area(a, frame->area, frame);
remove_frame(frame);
Received on Mon Feb 05 2007 - 12:10:04 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:54 UTC