1
0
Fork 0
forked from wry/wry

all: use run-on-drop crate

This commit is contained in:
Julian Orth 2026-02-13 11:09:07 +01:00
parent 346c6a7345
commit 0932ad11b5
19 changed files with 60 additions and 110 deletions

View file

@ -94,7 +94,6 @@ use {
event_listener::{EventListener, EventSource},
linkedlist::{LinkedList, LinkedNode, NodeRef},
numcell::NumCell,
on_drop::OnDrop,
rc_eq::{rc_eq, rc_weak_eq},
smallmap::SmallMap,
},
@ -111,6 +110,7 @@ use {
keyboard::syms::{KeySym, SYM_Escape},
},
kbvm::Keycode,
run_on_drop::on_drop,
smallvec::SmallVec,
std::{
cell::{Cell, RefCell},
@ -901,7 +901,7 @@ impl WlSeatGlobal {
return;
};
self.focus_history_rotate.fetch_add(1);
let _reset = OnDrop(|| {
let _reset = on_drop(|| {
self.focus_history_rotate.fetch_sub(1);
});
if !visible {