]> git.mdlowis.com Git - archive/afm.git/commitdiff
reset focus after deleting a window
authora bellenir <a@bellenir.com>
Thu, 24 Jul 2014 03:07:01 +0000 (03:07 +0000)
committera bellenir <a@bellenir.com>
Thu, 24 Jul 2014 03:07:01 +0000 (03:07 +0000)
source/screen.c

index e47d868ddb7d7c39d592951f9db51e22dff99ce9..b0896a70a1dabf9c07a054dbe3b805d17102339a 100644 (file)
@@ -55,8 +55,10 @@ void screen_open(void) {
 
 void screen_close(void) {
     int num_frames = list_size(Screen_List);
-    if(num_frames > 1)
+    if(num_frames > 1){
         list_delete(Screen_List, 0);
+               state_set_focused_frame(master_frame());
+    }
 }
 
 static void screen_place_windows(void) {