chore: Update smithay

Fixes #2081

This also reverts commit 0f7e53b, because the upstream commit (2e00119)
that introduced this thing was reverted
(https://github.com/Smithay/smithay/pull/1941).

There was also change in the cursor_capture_constraints signature in
smithay 7d992793f.
This commit is contained in:
Clayton Craft 2026-02-19 12:57:49 -08:00 committed by Victoria Brekenfeld
parent 769ed4b29c
commit fa3ffd18da
4 changed files with 12 additions and 40 deletions

View file

@ -15,7 +15,7 @@ use smithay::{
},
desktop::space::SpaceElement,
output::Output,
reexports::wayland_server::protocol::wl_shm::Format as ShmFormat,
reexports::wayland_server::protocol::{wl_pointer::WlPointer, wl_shm::Format as ShmFormat},
utils::{Buffer as BufferCoords, Point, Size, Transform},
wayland::{
dmabuf::get_dmabuf,
@ -69,6 +69,7 @@ impl ImageCopyCaptureHandler for State {
fn cursor_capture_constraints(
&mut self,
_source: &ImageCaptureSource,
_pointer: &WlPointer,
) -> Option<BufferConstraints> {
let size = if let Some((geometry, _)) = self
.common

View file

@ -1,35 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
use smithay::{
backend::input::KeyState,
delegate_virtual_keyboard_manager,
input::keyboard::{FilterResult, KeyboardHandle, Keycode, xkb::ModMask},
utils::SERIAL_COUNTER,
wayland::virtual_keyboard::VirtualKeyboardHandler,
};
impl VirtualKeyboardHandler for State {
fn on_keyboard_event(
&mut self,
keycode: Keycode,
state: KeyState,
time: u32,
keyboard: KeyboardHandle<Self>,
) {
let serial = SERIAL_COUNTER.next_serial();
keyboard.input(self, keycode, state, serial, time, |_, _, _| {
FilterResult::Forward::<bool>
});
}
fn on_keyboard_modifiers(
&mut self,
_depressed_mods: ModMask,
_latched_mods: ModMask,
_locked_mods: ModMask,
_keyboard: KeyboardHandle<Self>,
) {
}
}
use smithay::delegate_virtual_keyboard_manager;
delegate_virtual_keyboard_manager!(State);