diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-10-16 21:55:57 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-10-16 21:55:57 +0200 |
| commit | 011c634e17b9136bd2b839a882a0eb32dfb89d88 (patch) | |
| tree | d05be4a00ba7ee7a6e41a365a6907cce5fe3e0b6 | |
| parent | 6a1b8f47b690b4e1108770af9fce3bfc0fee1c9d (diff) | |
config/output: Improve modeset state logging
Include scale and subpixel in the output state log, and log the output
state on first commit attempt instead of just during fallback search.
(cherry picked from commit 7d93652105c370518f1e5856f8586b2297cab772)
| -rw-r--r-- | sway/config/output.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 8e2528c8..d774d17e 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -692,6 +692,13 @@ static void dump_output_state(struct wlr_output *wlr_output, struct wlr_output_s sway_log(SWAY_DEBUG, " adaptive_sync: %s", state->adaptive_sync_enabled ? "enabled": "disabled"); } + if (state->committed & WLR_OUTPUT_STATE_SCALE) { + sway_log(SWAY_DEBUG, " scale: %f", state->scale); + } + if (state->committed & WLR_OUTPUT_STATE_SUBPIXEL) { + sway_log(SWAY_DEBUG, " subpixel: %s", + sway_wl_output_subpixel_to_string(state->subpixel)); + } } static bool search_valid_config(struct search_context *ctx, size_t output_idx); @@ -906,9 +913,8 @@ static bool apply_resolved_output_configs(struct matched_output_config *configs, backend_state->output = cfg->output->wlr_output; wlr_output_state_init(&backend_state->base); - sway_log(SWAY_DEBUG, "Preparing config for %s", - cfg->output->wlr_output->name); queue_output_config(cfg->config, cfg->output, &backend_state->base); + dump_output_state(cfg->output->wlr_output, &backend_state->base); } struct wlr_output_swapchain_manager swapchain_mgr; |
