changeset: 1744:e97ba41da5d1
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 05 05:07:26 2007 -0500
files: frame.c
description:
Make swapping update area->sel. Fixes an infinite loop
diff -r bc3b7b5021ed -r e97ba41da5d1 frame.c
--- a/frame.c Mon Feb 05 04:38:32 2007 -0500
+++ b/frame.c Mon Feb 05 05:07:26 2007 -0500
@@ -91,6 +91,11 @@ swap_frames(Frame *fa, Frame *fb) {
fa->anext = ft;
}
+ if(fb->area->sel == fb)
+ fb->area->sel = fa;
+ if(fa->area->sel == fa)
+ fa->area->sel = fb;
+
fb->area = fa->area;
fa->area = a;
Received on Mon Feb 05 2007 - 11:10:04 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:54 UTC