[hackers] [wmii] Fix some swapping issues.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Jun 01 03:10:45 2007

changeset: 2144:197d2f0a4bd6
user: Kris Maglione <jg_AT_suckless.org>
date: Fri May 25 06:36:53 2007 -0400
summary: Fix some swapping issues.

diff -r e9278f62fde8 -r 197d2f0a4bd6 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Fri May 25 06:25:41 2007 -0400
+++ b/cmd/wmii/frame.c Fri May 25 06:36:53 2007 -0400
@@ -332,17 +332,19 @@ swap_frames(Frame *fa, Frame *fb) {
         for(fp = &fb->client->frame; *fp; fp = &(*fp)->cnext)
                 if(*fp == fb) break;
         *fp = (*fp)->cnext;
-
+
         c = fa->client;
         fa->client = fb->client;
         fb->client = c;
-
         fb->cnext = c->frame;
         c->frame = fb;
 
         c = fa->client;
         fa->cnext = c->frame;
         c->frame = fa;
+
+ if(c->sel && c->sel->view == screen->sel)
+ focus_view(screen, c->sel->view);
 }
 
 void
diff -r e9278f62fde8 -r 197d2f0a4bd6 cmd/wmii/message.c
--- a/cmd/wmii/message.c Fri May 25 06:25:41 2007 -0400
+++ b/cmd/wmii/message.c Fri May 25 06:36:53 2007 -0400
@@ -379,7 +379,6 @@ send_frame(Frame *f, int sym, Bool swap)
                 fp = f->aprev;
                 if(!fp)
                         return Ebadvalue;
- fp = fp->aprev;
                 break;
         case LDOWN:
                 fp = f->anext;
Received on Fri Jun 01 2007 - 03:10:45 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:10 UTC