mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
fix: crash when use focusstack
This commit is contained in:
parent
481ccb534b
commit
9eddc34b57
1 changed files with 4 additions and 4 deletions
|
|
@ -393,8 +393,8 @@ Client *get_next_stack_client(Client *c, bool reverse) {
|
||||||
Client *next = NULL;
|
Client *next = NULL;
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
wl_list_for_each_reverse(next, &c->link, link) {
|
wl_list_for_each_reverse(next, &c->link, link) {
|
||||||
if (!next)
|
if (&next->link == &clients)
|
||||||
continue; // 安全检查
|
continue; /* wrap past the sentinel node */
|
||||||
|
|
||||||
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
|
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
|
||||||
!next->isfullscreen)
|
!next->isfullscreen)
|
||||||
|
|
@ -406,8 +406,8 @@ Client *get_next_stack_client(Client *c, bool reverse) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
wl_list_for_each(next, &c->link, link) {
|
wl_list_for_each(next, &c->link, link) {
|
||||||
if (!next)
|
if (&next->link == &clients)
|
||||||
continue; // 安全检查
|
continue; /* wrap past the sentinel node */
|
||||||
|
|
||||||
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
|
if (c->mon->has_visible_fullscreen_client && !next->isfloating &&
|
||||||
!next->isfullscreen)
|
!next->isfullscreen)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue