Skip to content

feat: pick max-refresh mode at preferred resolution for new outputs - #1583

Draft
DocMAX wants to merge 1 commit into
mangowm:mainfrom
DocMAX:feat-max-refresh-mode
Draft

DocMAX wants to merge 1 commit into
mangowm:mainfrom
DocMAX:feat-max-refresh-mode

Conversation

@DocMAX

@DocMAX DocMAX commented Nov 3, 2026

Copy link
Copy Markdown

handle_new_output used the preferred mode verbatim, leaving high-refresh panels (e.g. a 240 Hz laptop display) stuck at a lower refresh rate.

New get_max_refresh_mode() keeps the preferred resolution but selects its highest-refresh mode, falling back to the largest high-refresh mode when there is no preferred mode. Both previous wlr_output_preferred_mode call sites use it.

Note: this changes default behavior for high-refresh outputs; easy to gate behind an option if preferred.

Built cleanly (ninja, no new warnings).

@DreamMaoMao
DreamMaoMao force-pushed the main branch 2 times, most recently from 87812a1 to 15e7d36 Compare November 8, 2026 00:35
@DreamMaoMao
DreamMaoMao force-pushed the main branch 10 times, most recently from a785f26 to bd20e53 Compare November 23, 2026 03:37
@DreamMaoMao
DreamMaoMao force-pushed the main branch 3 times, most recently from 2c08cb8 to 39c9894 Compare November 25, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant