1
0
Fork 0
forked from wry/wry

wayland: allow binding to removed outputs

This commit is contained in:
Julian Orth 2024-04-25 19:52:26 +02:00
parent 4651f760f0
commit c27bf4d597
4 changed files with 89 additions and 5 deletions

View file

@ -22,7 +22,7 @@ use {
SyncFile,
},
gfx_apis::create_gfx_context,
globals::{Globals, GlobalsError, WaylandGlobal},
globals::{Globals, GlobalsError, RemovableWaylandGlobal, WaylandGlobal},
ifs::{
ext_foreign_toplevel_list_v1::ExtForeignToplevelListV1,
ext_session_lock_v1::ExtSessionLockV1,
@ -511,7 +511,7 @@ impl State {
self.globals.add_global(self, global)
}
pub fn remove_global<T: WaylandGlobal>(&self, global: &T) -> Result<(), GlobalsError> {
pub fn remove_global<T: RemovableWaylandGlobal>(&self, global: &T) -> Result<(), GlobalsError> {
self.globals.remove(self, global)
}