aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-08-31 10:29:06 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-09-01 23:47:19 -0700
commitb7901579d586b6c68119ef65bc184a7369492791 (patch)
tree2385b41fc227702192db5a9ef8caebdc30b32ec8 /src/window
parent138c2a3bfd5d12efaeffcbf92dd14f8c26dbaafc (diff)
downloadniri-b7901579d586b6c68119ef65bc184a7369492791.tar.gz
niri-b7901579d586b6c68119ef65bc184a7369492791.tar.bz2
niri-b7901579d586b6c68119ef65bc184a7369492791.zip
Change IdCounter to be backed by an AtomicU64
Let's see if anyone complains.
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs
index 60cf7cd9..a2875d02 100644
--- a/src/window/mapped.rs
+++ b/src/window/mapped.rs
@@ -98,7 +98,7 @@ niri_render_elements! {
static MAPPED_ID_COUNTER: IdCounter = IdCounter::new();
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
-pub struct MappedId(u32);
+pub struct MappedId(u64);
impl MappedId {
fn next() -> MappedId {
@@ -106,7 +106,7 @@ impl MappedId {
}
pub fn get(self) -> u64 {
- u64::from(self.0)
+ self.0
}
}