mirror of
https://github.com/0intro/wmii
synced 2024-11-25 07:09:38 +03:00
Fix focus issue after restart.
This commit is contained in:
parent
f7f15fa7a7
commit
68673eb2b9
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user