mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Upgrade dependencies
This commit is contained in:
+7
-4
@@ -20,7 +20,7 @@ use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface;
|
||||
use smithay::reexports::wayland_server::Resource;
|
||||
use smithay::utils::{Logical, Rectangle, Size};
|
||||
use smithay::wayland::compositor::{send_surface_state, with_states};
|
||||
use smithay::wayland::dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportError};
|
||||
use smithay::wayland::dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier};
|
||||
use smithay::wayland::input_method::{InputMethodHandler, PopupSurface};
|
||||
use smithay::wayland::selection::data_device::{
|
||||
set_data_device_focus, ClientDndGrabHandler, DataDeviceHandler, DataDeviceState,
|
||||
@@ -189,15 +189,18 @@ impl DmabufHandler for State {
|
||||
&mut self,
|
||||
_global: &DmabufGlobal,
|
||||
dmabuf: Dmabuf,
|
||||
) -> Result<(), ImportError> {
|
||||
notifier: ImportNotifier,
|
||||
) {
|
||||
let renderer = self.backend.renderer().expect(
|
||||
"the dmabuf global must be created and destroyed together with the output device",
|
||||
);
|
||||
match renderer.import_dmabuf(&dmabuf, None) {
|
||||
Ok(_texture) => Ok(()),
|
||||
Ok(_texture) => {
|
||||
let _ = notifier.successful::<State>();
|
||||
}
|
||||
Err(err) => {
|
||||
debug!("error importing dmabuf: {err:?}");
|
||||
Err(ImportError::Failed)
|
||||
notifier.failed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -192,7 +192,7 @@ impl State {
|
||||
.seat
|
||||
.get_keyboard()
|
||||
.unwrap()
|
||||
.with_kkb_state(self, |mut state| match action {
|
||||
.with_xkb_state(self, |mut state| match action {
|
||||
LayoutAction::Next => state.cycle_next_layout(),
|
||||
LayoutAction::Prev => state.cycle_prev_layout(),
|
||||
});
|
||||
|
||||
+2
-2
@@ -407,7 +407,7 @@ impl State {
|
||||
if current_focus != focus {
|
||||
if self.niri.config.borrow().input.keyboard.track_layout == TrackLayout::Window {
|
||||
let current_layout =
|
||||
keyboard.with_kkb_state(self, |context| context.active_layout());
|
||||
keyboard.with_xkb_state(self, |context| context.active_layout());
|
||||
|
||||
let mut new_layout = current_layout;
|
||||
// Store the currently active layout for the surface.
|
||||
@@ -432,7 +432,7 @@ impl State {
|
||||
}
|
||||
if new_layout != current_layout && focus.is_some() {
|
||||
keyboard.set_focus(self, None, SERIAL_COUNTER.next_serial());
|
||||
keyboard.with_kkb_state(self, |mut context| {
|
||||
keyboard.with_xkb_state(self, |mut context| {
|
||||
context.set_layout(new_layout);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user