mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
ipc-server: Force modeset if needed after executing commands
IPC clients generally expect executed commands to have taken effect when
the command completes, while delayed modeset means that it can take
several milliseconds more before e.g. an output is enabled.
However, modesetting on every output command in the IPC call could on
systems with already slow modesetting behavior lead to an unresponsive
system for a not insignificant period of time.
To strike a balance, force modeset once all the commands of this IPC
call have executed if a modeset is pending.
(cherry picked from commit a2c73c9b8b)
This commit is contained in:
parent
27d4f15516
commit
b072958b49
3 changed files with 11 additions and 0 deletions
|
|
@ -706,6 +706,7 @@ void free_output_config(struct output_config *oc);
|
|||
|
||||
void request_modeset(void);
|
||||
void force_modeset(void);
|
||||
bool modeset_is_pending(void);
|
||||
|
||||
bool spawn_swaybg(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue