Skip to content

Commit

Permalink
fix broken keycodes being offset by 8
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhbooth committed Oct 23, 2024
1 parent 009b3d7 commit 2c7a614
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/server/client_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ impl WprsServerState {

keyboard.input::<(), _>(
self,
keycode.into(),
// our keycode is getting offset by 8 for reasons
// see https://github.com/Smithay/smithay/pull/1536
(keycode + 8).into(),
state,
serial,
self.start_time.elapsed().as_millis() as u32,
Expand Down
4 changes: 3 additions & 1 deletion src/xwayland_xdg_shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ impl WprsState {

keyboard.input::<(), _>(
self,
keycode.into(),
// our keycode is getting offset by 8 for reasons
// see https://github.com/Smithay/smithay/pull/1536
(keycode + 8).into(),
state,
serial,
self.compositor_state.start_time.elapsed().as_millis() as u32,
Expand Down

0 comments on commit 2c7a614

Please sign in to comment.