bug fix: apply selected layouts for tag in uicb_tag_view{next,prev}

Thanks Jordà Polo <jorda@ettin.org>
This commit is contained in:
Julien Danjou 2007-09-27 16:22:02 +02:00
parent b4cc86abf0
commit 486dd410ca
1 changed files with 2 additions and 0 deletions

2
tag.c
View File

@ -331,6 +331,7 @@ uicb_tag_viewnext(Display *disp,
if(++firsttag >= awesomeconf->ntags) if(++firsttag >= awesomeconf->ntags)
firsttag = 0; firsttag = 0;
awesomeconf->tags[firsttag].selected = True; awesomeconf->tags[firsttag].selected = True;
awesomeconf->current_layout = awesomeconf->tags[firsttag].layout;
saveawesomeprops(disp, awesomeconf); saveawesomeprops(disp, awesomeconf);
arrange(disp, drawcontext, awesomeconf); arrange(disp, drawcontext, awesomeconf);
} }
@ -359,6 +360,7 @@ uicb_tag_viewprev(Display *disp,
if(--firsttag < 0) if(--firsttag < 0)
firsttag = awesomeconf->ntags - 1; firsttag = awesomeconf->ntags - 1;
awesomeconf->tags[firsttag].selected = True; awesomeconf->tags[firsttag].selected = True;
awesomeconf->current_layout = awesomeconf->tags[firsttag].layout;
saveawesomeprops(disp, awesomeconf); saveawesomeprops(disp, awesomeconf);
arrange(disp, drawcontext, awesomeconf); arrange(disp, drawcontext, awesomeconf);
} }