Fix focus issue after restart.

This commit is contained in:
Kris Maglione 2011-09-15 12:38:16 -04:00
parent f7f15fa7a7
commit 68673eb2b9
2 changed files with 5 additions and 5 deletions

View File

@ -538,7 +538,8 @@ client_focus(Client *c) {
sync();
event_flush(FocusChangeMask, true);
Dprint(DFocus, "client_focus([%#C]%C)\n", c, c);
Dprint(DFocus, "client_focus([%#C]%C) collapsed=%s\n",
c, c, c && c->sel->collapsed ? "true" : "false");
Dprint(DFocus, "\t[%#C]%C\n\t=> [%#C]%C\n",
disp.focus, disp.focus, c, c);
@ -700,9 +701,7 @@ void
client_seturgent(Client *c, int urgent, int from) {
XWMHints *wmh;
char *cfrom, *cnot;
Frame *f, *ff;
Area *a;
int s;
Frame *f;
if(urgent == Toggle)
urgent = c->urgent ^ On;

View File

@ -609,11 +609,12 @@ frame_focus(Frame *f) {
move_focus(old_f, f);
if(a->floating)
float_arrange(a);
client_focus(f->client);
// if(!a->floating && ((a->mode == Colstack) || (a->mode == Colmax)))
if(true)
column_arrange(a, false);
client_focus(f->client);
}
}