mirror of
https://github.com/0intro/wmii
synced 2025-02-23 09:44:42 +03:00
Fix generation of extra FocusTag events on view change.
This commit is contained in:
parent
460e21c9c0
commit
a979c86bb2
@ -14,13 +14,15 @@ static char buf[256];
|
||||
static void
|
||||
assign_sel_view(View *v)
|
||||
{
|
||||
if(sel && sel != v) {
|
||||
snprintf(buf, sizeof(buf), "UnfocusTag %s\n", sel->name);
|
||||
if(sel != v) {
|
||||
if(sel) {
|
||||
snprintf(buf, sizeof(buf), "UnfocusTag %s\n", sel->name);
|
||||
write_event(buf);
|
||||
}
|
||||
sel = v;
|
||||
snprintf(buf, sizeof(buf), "FocusTag %s\n", sel->name);
|
||||
write_event(buf);
|
||||
}
|
||||
sel = v;
|
||||
snprintf(buf, sizeof(buf), "FocusTag %s\n", sel->name);
|
||||
write_event(buf);
|
||||
}
|
||||
|
||||
View *
|
||||
|
Loading…
x
Reference in New Issue
Block a user