1
0
Fork 0
forked from wry/wry

globals: add all globals during startup

This commit is contained in:
Julian Orth 2026-02-20 02:48:22 +01:00
parent b976f25cf9
commit ac77119aef
6 changed files with 35 additions and 26 deletions

View file

@ -8,6 +8,7 @@ use {
},
leaks::Tracker,
object::{Object, Version},
state::State,
wire::{ZwpLinuxDmabufFeedbackV1Id, ZwpLinuxDmabufV1Id, zwp_linux_dmabuf_v1::*},
},
std::rc::Rc,
@ -71,6 +72,10 @@ impl Global for ZwpLinuxDmabufV1Global {
fn version(&self) -> u32 {
5
}
fn exposed(&self, state: &State) -> bool {
state.render_ctx_ever_initialized.get()
}
}
simple_add_global!(ZwpLinuxDmabufV1Global);