toplevel-drag: move render logic into toplevel drag
This commit is contained in:
parent
50b6999b0c
commit
ac5a5ca949
3 changed files with 19 additions and 11 deletions
|
|
@ -352,6 +352,11 @@ impl CursorUser {
|
|||
self.pos.get()
|
||||
}
|
||||
|
||||
pub fn position_int(&self) -> (i32, i32) {
|
||||
let (x, y) = self.pos.get();
|
||||
(x.round_down(), y.round_down())
|
||||
}
|
||||
|
||||
pub fn set_position(&self, mut x: Fixed, mut y: Fixed) -> (Fixed, Fixed) {
|
||||
let x_int = x.round_down();
|
||||
let y_int = y.round_down();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue