]> git.mdlowis.com Git - proto/labwc.git/commit
src/output.c: Always react to new output configuration
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 8 Jul 2022 22:42:04 +0000 (00:42 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 9 Jul 2022 08:37:48 +0000 (09:37 +0100)
commitceca6afefce1d65e7f8b08a5aee6844924e7eefb
tree7917f958ee0b54142bc301fac7ea278e8cd86dd5
parentbfff9d02c717ad1a9b3693a843dd267774cdc7e9
src/output.c: Always react to new output configuration

Without this fix we will never react to output configuration changes
via wlr-randr and friends.

If output_config_apply() commits the new config, handle_output_layout_change()
is called but doesn't do anything because the config is still pending.

This patch moves the code into its own function do_output_layout_change()
which additionally gets called after all output configs are committed.

The original handler is turned into a wrapper around do_output_layout_change().

Reported-by @heroin-moose
src/output.c