diff --git a/src/client.rs b/src/client.rs
index 8ce8ee5d..0d408eb1 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -10,13 +10,13 @@ use {
wl_display::WlDisplay,
wl_registry::WlRegistry,
wl_surface::{WlSurface, commit_timeline::CommitTimelines},
+ xdg_activation_token_v1::ActivationToken,
},
leaks::Tracker,
object::{Interface, Object, ObjectId, WL_DISPLAY_ID},
security_context_acceptor::AcceptorMetadata,
state::State,
utils::{
- activation_token::ActivationToken,
asyncevent::AsyncEvent,
buffd::{MsgFormatter, MsgParser, MsgParserError, OutBufferSwapchain},
copyhashmap::{CopyHashMap, Locked},
diff --git a/src/config.rs b/src/config.rs
index 5e1b7c49..64ff595f 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -9,13 +9,12 @@ use {
config::handler::ConfigProxyHandler,
ifs::wl_seat::SeatId,
state::State,
- tree::{TileState, ToplevelData},
+ tree::{TileState, ToplevelData, ToplevelIdentifier},
utils::{
clonecell::CloneCell,
nice::{JAY_NO_REALTIME, dont_allow_config_so},
numcell::NumCell,
ptr_ext::PtrExt,
- toplevel_identifier::ToplevelIdentifier,
unlink_on_drop::UnlinkOnDrop,
xrd::xrd,
},
diff --git a/src/config/handler.rs b/src/config/handler.rs
index 1979dc38..1d07e1c6 100644
--- a/src/config/handler.rs
+++ b/src/config/handler.rs
@@ -28,8 +28,8 @@ use {
tagged_acceptor::TaggedAcceptorError,
theme::{ThemeColor, ThemeSized},
tree::{
- ContainerSplit, OutputNode, TearingMode, TileState, ToplevelData, ToplevelNode,
- VrrMode, WorkspaceNode, toplevel_create_split, toplevel_parent_container,
+ ContainerSplit, OutputNode, TearingMode, TileState, ToplevelData, ToplevelIdentifier,
+ ToplevelNode, VrrMode, WorkspaceNode, toplevel_create_split, toplevel_parent_container,
toplevel_set_floating, toplevel_set_workspace,
},
utils::{
@@ -40,7 +40,6 @@ use {
oserror::{OsError, OsErrorExt},
stack::Stack,
timer::{TimerError, TimerFd},
- toplevel_identifier::ToplevelIdentifier,
},
},
bincode::Options,
diff --git a/src/control_center/cc_clients.rs b/src/control_center/cc_clients.rs
index 1a1bd7b3..75e52d67 100644
--- a/src/control_center/cc_clients.rs
+++ b/src/control_center/cc_clients.rs
@@ -10,11 +10,8 @@ use {
criteria::{CritMgrExt, CritUpstreamNode, crit_leaf::CritLeafMatcher},
egui_adapter::egui_platform::icons::ICON_OPEN_IN_NEW,
state::State,
- tree::ToplevelData,
- utils::{
- copyhashmap::CopyHashMap, static_text::StaticText,
- toplevel_identifier::ToplevelIdentifier,
- },
+ tree::{ToplevelData, ToplevelIdentifier},
+ utils::{copyhashmap::CopyHashMap, static_text::StaticText},
},
ahash::AHashMap,
egui::{
diff --git a/src/control_center/cc_window.rs b/src/control_center/cc_window.rs
index 5da2c927..34974033 100644
--- a/src/control_center/cc_window.rs
+++ b/src/control_center/cc_window.rs
@@ -9,12 +9,11 @@ use {
criteria::{CritMgrExt, CritUpstreamNode, crit_leaf::CritLeafMatcher},
egui_adapter::egui_platform::icons::ICON_OPEN_IN_NEW,
state::State,
- tree::{NodeId, ToplevelData, ToplevelNode, ToplevelType},
+ tree::{NodeId, ToplevelData, ToplevelIdentifier, ToplevelNode, ToplevelType},
utils::{
copyhashmap::CopyHashMap,
event_listener::{EventListener, LazyEventSourceListener},
static_text::StaticText,
- toplevel_identifier::ToplevelIdentifier,
},
},
ahash::AHashMap,
diff --git a/src/criteria/tlm.rs b/src/criteria/tlm.rs
index a4fe005d..d7b5bece 100644
--- a/src/criteria/tlm.rs
+++ b/src/criteria/tlm.rs
@@ -29,11 +29,8 @@ use {
},
ifs::wl_seat::WlSeatGlobal,
state::State,
- tree::{NodeId, ToplevelData, ToplevelNode},
- utils::{
- copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue,
- toplevel_identifier::ToplevelIdentifier,
- },
+ tree::{NodeId, ToplevelData, ToplevelIdentifier, ToplevelNode},
+ utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue},
},
jay_config::window::{ContentType, WindowType},
linearize::static_map,
diff --git a/src/gfx_apis/gl.rs b/src/gfx_apis/gl.rs
index 1e974f6a..5f1b63e3 100644
--- a/src/gfx_apis/gl.rs
+++ b/src/gfx_apis/gl.rs
@@ -18,53 +18,6 @@ macro_rules! egl_transparent {
};
}
-macro_rules! dynload {
- (
- $item:ident: $container:ident from $name:literal {
- $(
- $fun:ident: $ty:ty,
- )*
- }
- ) => {
- #[expect(non_snake_case)]
- #[derive(Debug)]
- pub struct $container {
- _lib: libloading::Library,
- $(
- pub $fun: $ty,
- )*
- }
-
- pub static $item: std::sync::LazyLock