diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.rs | 2 | ||||
-rw-r--r-- | src/window.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs index 08c4d43e..c8fb83e9 100644 --- a/src/event.rs +++ b/src/event.rs @@ -303,7 +303,7 @@ impl<N: Notify> Processor<N> { processor.mouse_input(state, button); processor.ctx.terminal.dirty = true; }, - MouseMoved { position: (x, y), .. } => { + CursorMoved { position: (x, y), .. } => { let x = x as i32; let y = y as i32; let x = limit(x, 0, processor.ctx.size_info.width as i32); diff --git a/src/window.rs b/src/window.rs index 60048774..e42151fd 100644 --- a/src/window.rs +++ b/src/window.rs @@ -234,7 +234,7 @@ impl Window { pub fn inner_size_pixels(&self) -> Option<Size<Pixels<u32>>> { self.window - .get_inner_size_pixels() + .get_inner_size() .map(|(w, h)| Size { width: Pixels(w), height: Pixels(h) }) } |