Index: src/gui.c
===================================================================
--- src/gui.c	(revision 11)
+++ src/gui.c	(working copy)
@@ -18,28 +18,20 @@
 
 HOOKPROTONHNO(UI_TabChange, void, int *arg)
 {
-    
-    if (*arg == PID_Left)
+    if (*arg == PID_Left) {
         set(app.wi_main, MUIA_Window_ActiveObject, app.lv_left);
-    else if (*arg == PID_Right)
-        set(app.wi_main, MUIA_Window_ActiveObject, app.lv_right);
-
-    //printf("TabChange arg: %d\n",*arg);
-        
-    get(app.wi_main, MUIA_Window_ActiveObject, &app.lv_active);
-    
-    if (app.lv_active == app.lv_right)
-    {
-        app.to_active = app.to_right;
-        app.to_inactive = app.to_left;
-        app.lv_inactive = app.lv_left;
-    }
-    else if (app.lv_active == app.lv_left)
-    {
+        app.lv_active = app.lv_left;
         app.to_active = app.to_left;
         app.to_inactive = app.to_right;
         app.lv_inactive = app.lv_right;
     }
+    else if (*arg == PID_Right) {
+        set(app.wi_main, MUIA_Window_ActiveObject, app.lv_right);
+        app.lv_active = app.lv_right;
+        app.to_active = app.to_right;
+        app.to_inactive = app.to_left;
+        app.lv_inactive = app.lv_left;
+    }        
     else
         return;
     

