Make swapping update area->sel. Fixes an infinite loop

This commit is contained in:
Kris Maglione 2007-02-05 05:07:26 -05:00
parent 88d43166f6
commit 4e7ef24b52
1 changed files with 5 additions and 0 deletions

View File

@ -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;