mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
idle_inhibit: move server data to its own struct
This commit is contained in:
parent
072b334abc
commit
71224781c4
5 changed files with 53 additions and 26 deletions
|
|
@ -246,7 +246,7 @@ static void transaction_progress_queue() {
|
|||
transaction_destroy(transaction);
|
||||
}
|
||||
server.transactions->length = 0;
|
||||
idle_inhibit_v1_check_active(&server);
|
||||
idle_inhibit_v1_check_active(server.idle_inhibit_manager_v1);
|
||||
}
|
||||
|
||||
static int handle_timeout(void *data) {
|
||||
|
|
@ -322,7 +322,7 @@ void transaction_commit(struct sway_transaction *transaction) {
|
|||
wlr_log(L_DEBUG, "Transaction %p has nothing to wait for", transaction);
|
||||
transaction_apply(transaction);
|
||||
transaction_destroy(transaction);
|
||||
idle_inhibit_v1_check_active(&server);
|
||||
idle_inhibit_v1_check_active(server.idle_inhibit_manager_v1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue