From aced219954a31ee18ccb58a06047a96a07a2c26a Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Thu, 10 Aug 2023 17:01:21 +0300 Subject: fix hidpi --- src/state.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 5ad4511..2c55e2d 100644 --- a/src/state.rs +++ b/src/state.rs @@ -170,7 +170,6 @@ impl State { frame_cb: None, width: 0, height: self.shared_state.config.height, - scale: 1, scale120: None, surface, viewport: self.viewporter.get_viewport(conn, surface), @@ -380,7 +379,7 @@ fn wl_pointer_cb( conn, &mut state.shared_state.shm, default_cursor, - bar.scale, + bar.output.scale, args.serial, ); } -- cgit v1.3.1