globals: add all globals during startup
This commit is contained in:
parent
b976f25cf9
commit
ac77119aef
6 changed files with 35 additions and 26 deletions
|
|
@ -6,6 +6,7 @@ use {
|
|||
ifs::wp_presentation_feedback::WpPresentationFeedback,
|
||||
leaks::Tracker,
|
||||
object::{Object, Version},
|
||||
state::State,
|
||||
},
|
||||
std::rc::Rc,
|
||||
thiserror::Error,
|
||||
|
|
@ -50,6 +51,10 @@ impl Global for WpPresentationGlobal {
|
|||
fn version(&self) -> u32 {
|
||||
2
|
||||
}
|
||||
|
||||
fn exposed(&self, state: &State) -> bool {
|
||||
state.supports_presentation_feedback.get()
|
||||
}
|
||||
}
|
||||
|
||||
simple_add_global!(WpPresentationGlobal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue