tagpreview: proposed change to force hide preview window when changing tags ref. #415

This commit is contained in:
bakkeby 2024-03-27 09:04:55 +01:00
parent cfabf03f62
commit 82c3366317
3 changed files with 15 additions and 0 deletions

View File

@ -102,6 +102,11 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
if (i < NUMTAGS) { if (i < NUMTAGS) {
arg->ui = 1 << i; arg->ui = 1 << i;
} }
#if BAR_TAGPREVIEW_PATCH
if (selmon->previewshow != 0) {
hidetagpreview(selmon);
}
#endif // BAR_TAGPREVIEW_PATCH
return ClkTagBar; return ClkTagBar;
} }

View File

@ -87,6 +87,11 @@ click_taglabels(Bar *bar, Arg *arg, BarArg *a)
if (i < NUMTAGS) { if (i < NUMTAGS) {
arg->ui = 1 << i; arg->ui = 1 << i;
} }
#if BAR_TAGPREVIEW_PATCH
if (selmon->previewshow != 0) {
hidetagpreview(selmon);
}
#endif // BAR_TAGPREVIEW_PATCH
return ClkTagBar; return ClkTagBar;
} }

View File

@ -88,6 +88,11 @@ click_tags(Bar *bar, Arg *arg, BarArg *a)
if (i < NUMTAGS) { if (i < NUMTAGS) {
arg->ui = 1 << i; arg->ui = 1 << i;
} }
#if BAR_TAGPREVIEW_PATCH
if (selmon->previewshow != 0) {
hidetagpreview(selmon);
}
#endif // BAR_TAGPREVIEW_PATCH
return ClkTagBar; return ClkTagBar;
} }