format code

This commit is contained in:
DreamMaoMao 2025-11-08 12:41:38 +08:00
parent cd51cd9045
commit b05c02ccfb
4 changed files with 13 additions and 21 deletions

View file

@ -1460,11 +1460,11 @@ int toggleoverview(const Arg *arg) {
unsigned int visible_client_number = 0;
if (selmon->isoverview) {
wl_list_for_each(c, &clients,
link) if (c && c->mon == selmon &&
!client_is_unmanaged(c) &&
!client_is_x11_popup(c) &&
!c->isminied && !c->isunglobal) {
wl_list_for_each(c, &clients, link) if (c && c->mon == selmon &&
!client_is_unmanaged(c) &&
!client_is_x11_popup(c) &&
!c->isminied &&
!c->isunglobal) {
visible_client_number++;
}
if (visible_client_number > 0) {
@ -1494,8 +1494,7 @@ int toggleoverview(const Arg *arg) {
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !c->iskilling &&
!client_is_unmanaged(c) && !c->isunglobal &&
!client_is_x11_popup(c) &&
client_surface(c)->mapped)
!client_is_x11_popup(c) && client_surface(c)->mapped)
overview_restore(c, &(Arg){.ui = target});
}
}