[hackers] [wmii] Fix a->sel possibly being nil when it shouldn't

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 09 06:30:42 2007

changeset: 1801:409216e7556e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 09 00:27:03 2007 -0500
summary: Fix a->sel possibly being nil when it shouldn't

diff -r 1a6f29a141fe -r 409216e7556e area.c
--- a/area.c Fri Feb 09 00:08:07 2007 -0500
+++ b/area.c Fri Feb 09 00:27:03 2007 -0500
@@ -271,6 +271,8 @@ detach_from_area(Area *a, Frame *f) {
         remove_frame(f);
         if(a->sel == f)
                 a->sel = pr;
+ if(a->sel == nil)
+ a->sel = a->frame;
 
         if(!a->floating) {
                 if(a->frame)
Received on Fri Feb 09 2007 - 06:30:42 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:03 UTC