1
0
Fork 0
forked from wry/wry

wayland: run idle code unconditionally

This commit is contained in:
Julian Orth 2024-02-15 18:40:29 +01:00
parent 8da6285be8
commit 01e3930ced
5 changed files with 1 additions and 18 deletions

View file

@ -166,6 +166,7 @@ impl Globals {
add_singleton!(WpContentTypeManagerV1Global);
add_singleton!(XdgActivationV1Global);
add_singleton!(ExtForeignToplevelListV1Global);
add_singleton!(ZwpIdleInhibitManagerV1Global);
}
pub fn add_backend_singletons(&self, backend: &Rc<dyn Backend>) {
@ -174,9 +175,6 @@ impl Globals {
self.add_global_no_broadcast(&Rc::new($name::new(self.name())));
};
}
if backend.supports_idle() {
add_singleton!(ZwpIdleInhibitManagerV1Global);
}
if backend.supports_presentation_feedback() {
add_singleton!(WpPresentationGlobal);
}