feat: upgrade smithay
This commit is contained in:
@@ -36,7 +36,7 @@ use std::{
|
||||
};
|
||||
use tokio::sync::watch;
|
||||
use tracing::{debug, warn};
|
||||
use xkbcommon::xkb::{self, ffi::XKB_KEYMAP_FORMAT_TEXT_V1, Keymap};
|
||||
use xkbcommon::xkb::{self, ffi::XKB_KEYMAP_FORMAT_TEXT_V1, Keycode, Keymap};
|
||||
|
||||
pub fn handle_cursor<B: Backend>(
|
||||
panel_item: &Arc<PanelItem<B>>,
|
||||
@@ -75,7 +75,7 @@ impl KeyboardInfo {
|
||||
} else {
|
||||
xkb::KeyDirection::Up
|
||||
};
|
||||
let state_components = self.state.update_key(key + 8, xkb_key_state);
|
||||
let state_components = self.state.update_key(Keycode::new(key + 8), xkb_key_state);
|
||||
if state_components != 0 {
|
||||
self.mods.update_with(&self.state);
|
||||
keyboard.modifiers(
|
||||
|
||||
@@ -29,10 +29,8 @@ use smithay::reexports::{
|
||||
xdg_wm_base::{self, XdgWmBase},
|
||||
},
|
||||
wayland_server::{
|
||||
backend::{ClientId, ObjectId},
|
||||
protocol::wl_surface::WlSurface,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource, WEnum,
|
||||
Weak as WlWeak,
|
||||
backend::ClientId, protocol::wl_surface::WlSurface, Client, DataInit, Dispatch,
|
||||
DisplayHandle, GlobalDispatch, New, Resource, WEnum, Weak as WlWeak,
|
||||
},
|
||||
};
|
||||
use std::{
|
||||
@@ -740,7 +738,7 @@ impl Dispatch<XdgPopup, Mutex<PopupData>, WaylandState> for WaylandState {
|
||||
fn destroyed(
|
||||
_state: &mut WaylandState,
|
||||
_client: ClientId,
|
||||
_resource: ObjectId,
|
||||
_popup: &XdgPopup,
|
||||
data: &Mutex<PopupData>,
|
||||
) {
|
||||
let data = data.lock();
|
||||
|
||||
Reference in New Issue
Block a user