mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Merge pull request #3003 from Hi-Angel/master
seat: don't traverse the list to check if it's empty
This commit is contained in:
commit
f9a276544b
1 changed files with 1 additions and 1 deletions
|
@ -948,7 +948,7 @@ struct sway_node *seat_get_focus(struct sway_seat *seat) {
|
|||
if (!seat->has_focus) {
|
||||
return NULL;
|
||||
}
|
||||
if (wl_list_length(&seat->focus_stack) == 0) {
|
||||
if (wl_list_empty(&seat->focus_stack)) {
|
||||
return NULL;
|
||||
}
|
||||
struct sway_seat_node *current =
|
||||
|
|
Loading…
Reference in a new issue