1
0
Fork 0
forked from wry/wry

wayland: implement tearing-control-v1

Currently has no effect because there are no tearing atomic commits. But
by implementing this we make mesa expose VK_PRESENT_MODE_IMMEDIATE_KHR.
This commit is contained in:
Julian Orth 2022-11-18 19:42:59 +01:00
parent 0b46391789
commit cd47baa934
7 changed files with 235 additions and 1 deletions

View file

@ -22,6 +22,7 @@ use {
wl_surface::xwayland_shell_v1::XwaylandShellV1Global,
wp_fractional_scale_manager_v1::WpFractionalScaleManagerV1Global,
wp_presentation::WpPresentationGlobal,
wp_tearing_control_manager_v1::WpTearingControlManagerV1Global,
wp_viewporter::WpViewporterGlobal,
xdg_wm_base::XdgWmBaseGlobal,
zwlr_layer_shell_v1::ZwlrLayerShellV1Global,
@ -154,6 +155,7 @@ impl Globals {
add_singleton!(WpFractionalScaleManagerV1Global);
add_singleton!(ZwpPointerConstraintsV1Global);
add_singleton!(XwaylandShellV1Global);
add_singleton!(WpTearingControlManagerV1Global);
}
pub fn add_backend_singletons(&self, backend: &Rc<dyn Backend>) {