mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
config: convert tweak.render_timer to an enum
This commit is contained in:
parent
69ec74a605
commit
891fce6236
4 changed files with 42 additions and 22 deletions
10
wayland.c
10
wayland.c
|
|
@ -1495,12 +1495,20 @@ wayl_win_init(struct terminal *term, const char *token)
|
|||
xdg_activation_v1_activate(wayl->xdg_activation, token, win->surface);
|
||||
#endif
|
||||
|
||||
if (conf->tweak.render_timer_osd) {
|
||||
switch (conf->tweak.render_timer) {
|
||||
case RENDER_TIMER_OSD:
|
||||
case RENDER_TIMER_BOTH:
|
||||
if (!wayl_win_subsurface_new(win, &win->render_timer)) {
|
||||
LOG_ERR("failed to create render timer surface");
|
||||
goto out;
|
||||
}
|
||||
break;
|
||||
|
||||
case RENDER_TIMER_NONE:
|
||||
case RENDER_TIMER_LOG:
|
||||
break;
|
||||
}
|
||||
|
||||
return win;
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue