chore: Update smithay with Dispatch2
This commit is contained in:
parent
b5186ef21a
commit
4106904a7e
46 changed files with 59 additions and 234 deletions
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_alpha_modifier;
|
||||
|
||||
delegate_alpha_modifier!(State);
|
||||
|
|
@ -7,7 +7,6 @@ use smithay::{
|
|||
element::{Kind, surface::KindEvaluation},
|
||||
utils::{on_commit_buffer_handler, with_renderer_surface_state},
|
||||
},
|
||||
delegate_compositor,
|
||||
desktop::{LayerSurface, PopupKind, WindowSurfaceType, layer_map_for_output},
|
||||
reexports::wayland_server::{Client, Resource, protocol::wl_surface::WlSurface},
|
||||
utils::{Clock, Logical, Monotonic, SERIAL_COUNTER, Size, Time},
|
||||
|
|
@ -434,5 +433,3 @@ impl State {
|
|||
false
|
||||
}
|
||||
}
|
||||
|
||||
delegate_compositor!(State);
|
||||
|
|
|
|||
|
|
@ -1,13 +1,8 @@
|
|||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_ext_data_control,
|
||||
wayland::selection::ext_data_control::{DataControlHandler, DataControlState},
|
||||
};
|
||||
use smithay::wayland::selection::ext_data_control::{DataControlHandler, DataControlState};
|
||||
|
||||
impl DataControlHandler for State {
|
||||
fn data_control_state(&mut self) -> &mut DataControlState {
|
||||
&mut self.common.ext_data_control_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_ext_data_control!(State);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_data_control,
|
||||
wayland::selection::wlr_data_control::{DataControlHandler, DataControlState},
|
||||
};
|
||||
use smithay::wayland::selection::wlr_data_control::{DataControlHandler, DataControlState};
|
||||
|
||||
impl DataControlHandler for State {
|
||||
fn data_control_state(&mut self) -> &mut DataControlState {
|
||||
&mut self.common.wlr_data_control_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_data_control!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::{state::State, utils::prelude::SeatExt};
|
||||
use smithay::{
|
||||
delegate_data_device,
|
||||
input::{
|
||||
Seat,
|
||||
dnd::{DnDGrab, DndGrabHandler, DndTarget, GrabType},
|
||||
|
|
@ -135,5 +134,3 @@ impl DataDeviceHandler for State {
|
|||
&mut self.common.data_device_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_data_device!(State);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
use std::{cell::RefCell, sync::Mutex};
|
||||
|
||||
use smithay::{
|
||||
delegate_kde_decoration, delegate_xdg_decoration,
|
||||
desktop::Window,
|
||||
reexports::{
|
||||
wayland_protocols::xdg::decoration::zv1::server::zxdg_toplevel_decoration_v1::Mode as XdgMode,
|
||||
|
|
@ -186,6 +185,3 @@ impl KdeDecorationHandler for State {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xdg_decoration!(State);
|
||||
delegate_kde_decoration!(State);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use crate::{
|
|||
};
|
||||
use smithay::{
|
||||
backend::{allocator::dmabuf::Dmabuf, renderer::element::Kind},
|
||||
delegate_dmabuf,
|
||||
desktop::WindowSurfaceType,
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
wayland::{
|
||||
|
|
@ -89,5 +88,3 @@ impl DmabufHandler for State {
|
|||
}))
|
||||
}
|
||||
}
|
||||
|
||||
delegate_dmabuf!(State);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
use crate::state::State;
|
||||
use smithay::{
|
||||
backend::drm::DrmNode,
|
||||
delegate_drm_lease,
|
||||
wayland::drm_lease::{
|
||||
DrmLease, DrmLeaseBuilder, DrmLeaseHandler, DrmLeaseRequest, DrmLeaseState, LeaseRejected,
|
||||
},
|
||||
|
|
@ -134,5 +133,3 @@ impl DrmLeaseHandler for State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
delegate_drm_lease!(State);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::{BackendData, State};
|
||||
use smithay::{
|
||||
delegate_drm_syncobj,
|
||||
wayland::drm_syncobj::{DrmSyncobjHandler, DrmSyncobjState},
|
||||
};
|
||||
use smithay::wayland::drm_syncobj::{DrmSyncobjHandler, DrmSyncobjState};
|
||||
|
||||
impl DrmSyncobjHandler for State {
|
||||
fn drm_syncobj_state(&mut self) -> Option<&mut DrmSyncobjState> {
|
||||
|
|
@ -15,5 +12,3 @@ impl DrmSyncobjHandler for State {
|
|||
kms.syncobj_state.as_mut()
|
||||
}
|
||||
}
|
||||
|
||||
delegate_drm_syncobj!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_fixes;
|
||||
|
||||
delegate_fixes!(State);
|
||||
|
|
@ -10,5 +10,3 @@ impl ForeignToplevelListHandler for State {
|
|||
&mut self.toplevel_info_state_mut().foreign_toplevel_list
|
||||
}
|
||||
}
|
||||
|
||||
smithay::delegate_foreign_toplevel_list!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
use crate::{state::State, utils::prelude::SeatExt};
|
||||
use smithay::{
|
||||
delegate_fractional_scale,
|
||||
desktop::utils::surface_primary_scanout_output,
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
wayland::{
|
||||
|
|
@ -55,5 +54,3 @@ impl FractionalScaleHandler for State {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
delegate_fractional_scale!(State);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use smithay::{
|
||||
delegate_idle_inhibit, reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
wayland::idle_inhibit::IdleInhibitHandler,
|
||||
};
|
||||
|
||||
|
|
@ -16,4 +16,3 @@ impl IdleInhibitHandler for State {
|
|||
self.common.refresh_idle_inhibit();
|
||||
}
|
||||
}
|
||||
delegate_idle_inhibit!(State);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use smithay::{delegate_idle_notify, wayland::idle_notify::IdleNotifierHandler};
|
||||
use smithay::wayland::idle_notify::IdleNotifierHandler;
|
||||
|
||||
use crate::state::State;
|
||||
|
||||
|
|
@ -9,4 +9,3 @@ impl IdleNotifierHandler for State {
|
|||
&mut self.common.idle_notifier_state
|
||||
}
|
||||
}
|
||||
delegate_idle_notify!(State);
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
use crate::{
|
||||
state::State,
|
||||
wayland::protocols::{
|
||||
image_capture_source::{ImageCaptureSourceKind, delegate_cosmic_image_capture_source},
|
||||
toplevel_info::window_from_ext,
|
||||
image_capture_source::ImageCaptureSourceKind, toplevel_info::window_from_ext,
|
||||
},
|
||||
};
|
||||
use smithay::{
|
||||
|
|
@ -51,9 +50,3 @@ impl ToplevelCaptureSourceHandler for State {
|
|||
source.user_data().insert_if_missing(|| data);
|
||||
}
|
||||
}
|
||||
|
||||
smithay::delegate_image_capture_source!(State);
|
||||
smithay::delegate_output_capture_source!(State);
|
||||
smithay::delegate_toplevel_capture_source!(State);
|
||||
|
||||
delegate_cosmic_image_capture_source!(State);
|
||||
|
|
|
|||
|
|
@ -449,5 +449,3 @@ fn constraints_for_renderer(
|
|||
|
||||
constraints
|
||||
}
|
||||
|
||||
smithay::delegate_image_copy_capture!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_input_method_manager,
|
||||
desktop::{PopupKind, PopupManager, space::SpaceElement},
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
utils::Rectangle,
|
||||
|
|
@ -41,5 +40,3 @@ impl InputMethodHandler for State {
|
|||
self.common.shell.read().unconstrain_popup(&popup.into());
|
||||
}
|
||||
}
|
||||
|
||||
delegate_input_method_manager!(State);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_keyboard_shortcuts_inhibit,
|
||||
wayland::keyboard_shortcuts_inhibit::{
|
||||
KeyboardShortcutsInhibitHandler, KeyboardShortcutsInhibitState, KeyboardShortcutsInhibitor,
|
||||
},
|
||||
use smithay::wayland::keyboard_shortcuts_inhibit::{
|
||||
KeyboardShortcutsInhibitHandler, KeyboardShortcutsInhibitState, KeyboardShortcutsInhibitor,
|
||||
};
|
||||
|
||||
impl KeyboardShortcutsInhibitHandler for State {
|
||||
|
|
@ -18,5 +15,3 @@ impl KeyboardShortcutsInhibitHandler for State {
|
|||
inhibitor.activate();
|
||||
}
|
||||
}
|
||||
|
||||
delegate_keyboard_shortcuts_inhibit!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::{shell::PendingLayer, utils::prelude::*};
|
||||
use smithay::{
|
||||
delegate_layer_shell,
|
||||
desktop::{LayerSurface, PopupKind, WindowSurfaceType, layer_map_for_output},
|
||||
output::Output,
|
||||
reexports::wayland_server::protocol::wl_output::WlOutput,
|
||||
|
|
@ -82,5 +81,3 @@ impl WlrLayerShellHandler for State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
delegate_layer_shell!(State);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
pub mod a11y;
|
||||
pub mod alpha_modifier;
|
||||
pub mod buffer;
|
||||
pub mod compositor;
|
||||
pub mod corner_radius;
|
||||
|
|
@ -12,7 +11,6 @@ pub mod dmabuf;
|
|||
pub mod drm;
|
||||
pub mod drm_lease;
|
||||
pub mod drm_syncobj;
|
||||
pub mod fixes;
|
||||
pub mod foreign_toplevel_list;
|
||||
pub mod fractional_scale;
|
||||
pub mod idle_inhibit;
|
||||
|
|
@ -27,22 +25,15 @@ pub mod output_configuration;
|
|||
pub mod output_power;
|
||||
pub mod overlap_notify;
|
||||
pub mod pointer_constraints;
|
||||
pub mod pointer_gestures;
|
||||
pub mod presentation;
|
||||
pub mod primary_selection;
|
||||
pub mod relative_pointer;
|
||||
pub mod seat;
|
||||
pub mod security_context;
|
||||
pub mod selection;
|
||||
pub mod session_lock;
|
||||
pub mod shm;
|
||||
pub mod single_pixel_buffer;
|
||||
pub mod tablet_manager;
|
||||
pub mod text_input;
|
||||
pub mod toplevel_info;
|
||||
pub mod toplevel_management;
|
||||
pub mod viewporter;
|
||||
pub mod virtual_keyboard;
|
||||
pub mod workspace;
|
||||
pub mod xdg_activation;
|
||||
pub mod xdg_foreign;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{delegate_output, wayland::output::OutputHandler};
|
||||
use smithay::wayland::output::OutputHandler;
|
||||
|
||||
impl OutputHandler for State {}
|
||||
|
||||
delegate_output!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_pointer_constraints,
|
||||
input::pointer::PointerHandle,
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
utils::{Logical, Point},
|
||||
|
|
@ -34,4 +33,3 @@ impl PointerConstraintsHandler for State {
|
|||
// TODO
|
||||
}
|
||||
}
|
||||
delegate_pointer_constraints!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_pointer_gestures;
|
||||
|
||||
delegate_pointer_gestures!(State);
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_presentation;
|
||||
|
||||
delegate_presentation!(State);
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_primary_selection,
|
||||
wayland::selection::primary_selection::{PrimarySelectionHandler, PrimarySelectionState},
|
||||
use smithay::wayland::selection::primary_selection::{
|
||||
PrimarySelectionHandler, PrimarySelectionState,
|
||||
};
|
||||
|
||||
impl PrimarySelectionHandler for State {
|
||||
|
|
@ -11,5 +10,3 @@ impl PrimarySelectionHandler for State {
|
|||
&mut self.common.primary_selection_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_primary_selection!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_relative_pointer;
|
||||
|
||||
delegate_relative_pointer!(State);
|
||||
|
|
@ -6,10 +6,7 @@ use crate::{
|
|||
state::State,
|
||||
utils::prelude::SeatExt,
|
||||
};
|
||||
use smithay::{
|
||||
delegate_cursor_shape, delegate_seat,
|
||||
input::{SeatHandler, SeatState, keyboard::LedState, pointer::CursorImageStatus},
|
||||
};
|
||||
use smithay::input::{SeatHandler, SeatState, keyboard::LedState, pointer::CursorImageStatus};
|
||||
|
||||
impl SeatHandler for State {
|
||||
type KeyboardFocus = KeyboardFocusTarget;
|
||||
|
|
@ -37,6 +34,3 @@ impl SeatHandler for State {
|
|||
devices.update_led_state(led_state);
|
||||
}
|
||||
}
|
||||
|
||||
delegate_seat!(State);
|
||||
delegate_cursor_shape!(State);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
use crate::state::{ClientState, State};
|
||||
use smithay::{
|
||||
backend::drm::DrmNode,
|
||||
delegate_security_context,
|
||||
wayland::security_context::{
|
||||
SecurityContext, SecurityContextHandler, SecurityContextListenerSource,
|
||||
},
|
||||
|
|
@ -54,4 +53,3 @@ impl SecurityContextHandler for State {
|
|||
.expect("Failed to init the wayland socket source.");
|
||||
}
|
||||
}
|
||||
delegate_security_context!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::{shell::SessionLock, state::State, utils::prelude::*};
|
||||
use smithay::{
|
||||
delegate_session_lock,
|
||||
output::Output,
|
||||
reexports::wayland_server::{Resource, protocol::wl_output::WlOutput},
|
||||
utils::Size,
|
||||
|
|
@ -68,5 +67,3 @@ impl SessionLockHandler for State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
delegate_session_lock!(State);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_shm,
|
||||
wayland::shm::{ShmHandler, ShmState},
|
||||
};
|
||||
use smithay::wayland::shm::{ShmHandler, ShmState};
|
||||
|
||||
impl ShmHandler for State {
|
||||
fn shm_state(&self) -> &ShmState {
|
||||
&self.common.shm_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_shm!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_single_pixel_buffer;
|
||||
|
||||
delegate_single_pixel_buffer!(State);
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
backend::input::TabletToolDescriptor, delegate_tablet_manager,
|
||||
input::pointer::CursorImageStatus, wayland::tablet_manager::TabletSeatHandler,
|
||||
backend::input::TabletToolDescriptor, input::pointer::CursorImageStatus,
|
||||
wayland::tablet_manager::TabletSeatHandler,
|
||||
};
|
||||
|
||||
impl TabletSeatHandler for State {
|
||||
|
|
@ -11,5 +11,3 @@ impl TabletSeatHandler for State {
|
|||
// TODO display cursor for each tablet tool
|
||||
}
|
||||
}
|
||||
|
||||
delegate_tablet_manager!(State);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_text_input_manager;
|
||||
|
||||
delegate_text_input_manager!(State);
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_viewporter;
|
||||
|
||||
delegate_viewporter!(State);
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::delegate_virtual_keyboard_manager;
|
||||
|
||||
delegate_virtual_keyboard_manager!(State);
|
||||
|
|
@ -6,7 +6,6 @@ use crate::{
|
|||
wayland::protocols::workspace::{State as WState, WorkspaceHandle},
|
||||
};
|
||||
use smithay::{
|
||||
delegate_xdg_activation,
|
||||
input::Seat,
|
||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||
wayland::xdg_activation::{
|
||||
|
|
@ -246,5 +245,3 @@ impl State {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xdg_activation!(State);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_xdg_foreign,
|
||||
wayland::xdg_foreign::{XdgForeignHandler, XdgForeignState},
|
||||
};
|
||||
use smithay::wayland::xdg_foreign::{XdgForeignHandler, XdgForeignState};
|
||||
|
||||
impl XdgForeignHandler for State {
|
||||
fn xdg_foreign_state(&mut self) -> &mut XdgForeignState {
|
||||
&mut self.common.xdg_foreign_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xdg_foreign!(State);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use crate::{
|
|||
};
|
||||
use smithay::desktop::layer_map_for_output;
|
||||
use smithay::{
|
||||
delegate_xdg_shell,
|
||||
desktop::{
|
||||
PopupGrab, PopupKeyboardGrab, PopupKind, PopupPointerGrab, PopupUngrabStrategy,
|
||||
WindowSurfaceType, find_popup_root_surface,
|
||||
|
|
@ -391,5 +390,3 @@ impl XdgShellHandler for State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xdg_shell!(State);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use crate::{shell::focus::target::KeyboardFocusTarget, state::State};
|
||||
use smithay::{
|
||||
delegate_xwayland_keyboard_grab,
|
||||
input::Seat,
|
||||
reexports::wayland_server::{Resource, protocol::wl_surface::WlSurface},
|
||||
wayland::xwayland_keyboard_grab::{XWaylandKeyboardGrab, XWaylandKeyboardGrabHandler},
|
||||
|
|
@ -49,5 +48,3 @@ impl XWaylandGrabSeat for Seat<State> {
|
|||
.is_some_and(|(s, g)| g.grab().is_alive() && s == surface)
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xwayland_keyboard_grab!(State);
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::state::State;
|
||||
use smithay::{
|
||||
delegate_xwayland_shell,
|
||||
wayland::xwayland_shell::{XWaylandShellHandler, XWaylandShellState},
|
||||
};
|
||||
use smithay::wayland::xwayland_shell::{XWaylandShellHandler, XWaylandShellState};
|
||||
|
||||
impl XWaylandShellHandler for State {
|
||||
fn xwayland_shell_state(&mut self) -> &mut XWaylandShellState {
|
||||
&mut self.common.xwayland_shell_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xwayland_shell!(State);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue