aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-17 14:29:30 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-17 14:34:04 +0000
commit24ee3dcc10c5e1cf57456cc39fa0b5e8700a06ed (patch)
treef5871e5c51a51600326a001ca592afddb3fa01f8 /main.c
parentkey-binding: NOINLINE a couple of functions, for a minor code size reduction (diff)
wayland: refactor: remove ‘struct config’ pointer from wayland struct
The global config doesn’t necessarily reflect the correct configuration to use - we should *always* use the current terminal instance’s conf pointer. * Move selection override modifier mask to the key_binding_set struct * Always warn if XDG activation is unavailable, not just if bell.urgent is set (we no longer have access to this information) * Pass ‘bool presentation_timings’ as a parameter to wayl_init() * Remove ‘presentation_timings’ member from the ‘terminal’ struct Closes #932
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0acb7ea6..56fc1a01 100644
--- a/main.c
+++ b/main.c
@@ -605,8 +605,11 @@ main(int argc, char *const *argv)
if ((key_binding_manager = key_binding_manager_new()) == NULL)
goto out;
- if ((wayl = wayl_init(&conf, fdm, key_binding_manager)) == NULL)
+ if ((wayl = wayl_init(
+ fdm, key_binding_manager, conf.presentation_timings)) == NULL)
+ {
goto out;
+ }
if ((renderer = render_init(fdm, wayl)) == NULL)
goto out;