opt: remove useless code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user