From 003f2fd4608f9b8425d2426bea659c8f1c1e33a5 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 21 Nov 2023 16:46:18 +0100 Subject: [PATCH] undo --- kubi/src/cursor_lock.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubi/src/cursor_lock.rs b/kubi/src/cursor_lock.rs index 090328f..1951598 100644 --- a/kubi/src/cursor_lock.rs +++ b/kubi/src/cursor_lock.rs @@ -1,4 +1,3 @@ -use glium::backend::Facade; use shipyard::{AllStoragesView, Unique, NonSendSync, UniqueView, UniqueViewMut}; use crate::rendering::Renderer; use winit::window::CursorGrabMode; @@ -14,7 +13,7 @@ pub fn update_cursor_lock_state( return } if lock.is_inserted_or_modified() { - let gl_window = display.display.; + let gl_window = display.display.gl_window(); let window = gl_window.window(); window.set_cursor_grab(match lock.0 { true => CursorGrabMode::Confined,