1
0
Fork 0
forked from wry/wry

wayland: implement fifo-v1

This commit is contained in:
Julian Orth 2024-09-13 16:01:49 +02:00
parent d8e0375c48
commit fe7175fab2
19 changed files with 416 additions and 23 deletions

View file

@ -32,7 +32,7 @@ use {
scale::Scale,
sighand::{self, SighandError},
state::{ConnectorData, IdleState, ScreenlockState, State, XWaylandState},
tasks::{self, idle},
tasks::{self, handle_const_40hz_latch, idle},
tracy::enable_profiler,
tree::{
container_layout, container_render_positions, container_render_titles, float_layout,
@ -272,6 +272,7 @@ fn start_compositor2(
ui_drag_enabled: Cell::new(true),
ui_drag_threshold_squared: Cell::new(10),
toplevels: Default::default(),
const_40hz_latch: Default::default(),
});
state.tracker.register(ClientId::from_raw(0));
create_dummy_output(&state);
@ -435,6 +436,11 @@ fn start_global_event_handlers(
"slow ei clients",
tasks::handle_slow_ei_clients(state.clone()),
),
eng.spawn2(
"const 40hz latch",
Phase::Present,
handle_const_40hz_latch(state.clone()),
),
]
}