Skip to content

Comments

Add extra AUTO options#87

Merged
ammen99 merged 2 commits intoWayfireWM:masterfrom
hustlerone:master
Feb 20, 2026
Merged

Add extra AUTO options#87
ammen99 merged 2 commits intoWayfireWM:masterfrom
hustlerone:master

Conversation

@hustlerone
Copy link
Contributor

Using the preferred video mode is a nice heuristic. However, some monitors and TV's preferred mode is not up to the user's preference.

This adds two modes, AUTO_HIGHRR and AUTO_HIGHRES.
The former chooses the highest refresh rate first then chooses the highest resolution that satisfies the initial constraint.
The latter just scrapes the barrel with the video modes. It chooses the "biggest" one.

I am not sure if the function wf::output_config::mode_t::mode_t in src/types.cpp needs to be changed.

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hustlerone
Copy link
Contributor Author

(pls run uncrustify job)

@hustlerone hustlerone force-pushed the master branch 2 times, most recently from 0fedd2b to b1a3a22 Compare February 17, 2026 08:01
Matches the uncrustify setup on Wayfire.
Namely, `MODE_HIGHRR` and `MODE_HIGHRES`. They change the criteria on the "best" monitor mode.

This is a breaking change. mode_t now only allows enums for the AUTO mode(s).
@hustlerone
Copy link
Contributor Author

Adjusted and uncrustified, CI should pass

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ammen99 ammen99 merged commit dc1ad19 into WayfireWM:master Feb 20, 2026
2 checks passed
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.

2 participants