1
0
Fork 0
forked from wry/wry

autocommit 2022-04-10 01:54:16 CEST

This commit is contained in:
Julian Orth 2022-04-10 01:54:16 +02:00
parent befd5e99b2
commit af152f7f3e
6 changed files with 49 additions and 5 deletions

View file

@ -74,6 +74,8 @@ pub const BTN_LEFT: u32 = 0x110;
pub const SEAT_NAME_SINCE: u32 = 2;
pub const PX_PER_SCROLL: f64 = 15.0;
#[derive(Clone)]
pub struct Dnd {
pub seat: Rc<WlSeatGlobal>,

View file

@ -799,8 +799,8 @@ impl Node for WlSurface {
seat.button_surface(&self, button, state);
}
fn axis_event(&self, seat: &WlSeatGlobal, event: &PendingScroll) {
seat.scroll_surface(self, event);
fn axis_event(self: Rc<Self>, seat: &WlSeatGlobal, event: &PendingScroll) {
seat.scroll_surface(&*self, event);
}
fn focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>) {