1
0
Fork 0
forked from wry/wry

tree: use trunc instead of round when scrolling containers

This commit is contained in:
Julian Orth 2022-05-07 18:06:55 +02:00
parent b7831e1019
commit ec9710983c
14 changed files with 70 additions and 6 deletions

View file

@ -34,7 +34,7 @@ pub const AXIS_DISCRETE_SINCE_VERSION: u32 = 5;
pub const AXIS_STOP_SINCE_VERSION: u32 = 5;
pub const WHEEL_TILT_SINCE_VERSION: u32 = 6;
#[derive(Default)]
#[derive(Default, Debug)]
pub struct PendingScroll {
pub discrete: [Cell<Option<i32>>; 2],
pub axis: [Cell<Option<Fixed>>; 2],

View file

@ -321,6 +321,7 @@ impl Node for XdgPopup {
}
fn node_on_pointer_focus(&self, seat: &Rc<WlSeatGlobal>) {
// log::info!("xdg-popup focus");
seat.set_known_cursor(KnownCursor::Default);
}
}

View file

@ -426,6 +426,7 @@ impl Node for XdgToplevel {
}
fn node_on_pointer_focus(&self, seat: &Rc<WlSeatGlobal>) {
// log::info!("xdg-toplevel focus");
seat.set_known_cursor(KnownCursor::Default);
}
}

View file

@ -374,6 +374,7 @@ impl Node for Xwindow {
}
fn node_on_pointer_focus(&self, seat: &Rc<WlSeatGlobal>) {
// log::info!("wl-surface focus");
seat.set_known_cursor(KnownCursor::Default);
}
}