mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-13 11:04:33 -04:00
opt: set a default mode for non mode display
This commit is contained in:
parent
86d21ab807
commit
43d792e550
1 changed files with 9 additions and 3 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -3511,9 +3511,15 @@ void createmon(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!custom_monitor_mode)
|
if (!custom_monitor_mode) {
|
||||||
wlr_output_state_set_mode(&pending,
|
struct wlr_output_mode *preferred_mode =
|
||||||
wlr_output_preferred_mode(wlr_output));
|
wlr_output_preferred_mode(wlr_output);
|
||||||
|
if (preferred_mode) {
|
||||||
|
wlr_output_state_set_mode(&pending, preferred_mode);
|
||||||
|
} else {
|
||||||
|
wlr_output_state_set_custom_mode(&pending, 1920, 1080, 60000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ===================================================
|
// ===================================================
|
||||||
// 构建最终的输出状态,包含 HDR,并通过 scene 提交
|
// 构建最终的输出状态,包含 HDR,并通过 scene 提交
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue