opt: remove useless code

This commit is contained in:
DreamMaoMao
2025-12-16 12:02:34 +08:00
parent b5848f38b4
commit 0212ee7177
3 changed files with 1 additions and 15 deletions

View File

@@ -388,7 +388,7 @@ Client *focustop(Monitor *m) {
Client *get_next_stack_client(Client *c, bool reverse) {
if (!c || !c->mon)
return NULL; // 添加输入检查
return NULL;
Client *next = NULL;
if (reverse) {
@@ -396,11 +396,6 @@ Client *get_next_stack_client(Client *c, bool reverse) {
if (&next->link == &clients)
continue; /* wrap past the sentinel node */
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
!next->isfullscreen)
continue;
// 添加更安全的 VISIBLEON 检查
if (next != c && next->mon && VISIBLEON(next, c->mon))
return next;
}
@@ -409,10 +404,6 @@ Client *get_next_stack_client(Client *c, bool reverse) {
if (&next->link == &clients)
continue; /* wrap past the sentinel node */
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
!next->isfullscreen)
continue;
if (next != c && next->mon && VISIBLEON(next, c->mon))
return next;
}