aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-09 19:06:13 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-09 19:06:13 +0400
commit7e0d3d31f719615a3da99325d5797a96ae1fa5d2 (patch)
treefa1839446cb59f0b852802501745eaaf27191ea6 /src/niri.rs
parente448cfb0efee0efbfc769662ee77ad22a347dc02 (diff)
downloadniri-7e0d3d31f719615a3da99325d5797a96ae1fa5d2.tar.gz
niri-7e0d3d31f719615a3da99325d5797a96ae1fa5d2.tar.bz2
niri-7e0d3d31f719615a3da99325d5797a96ae1fa5d2.zip
Update Smithay
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 036a5a83..1eedcffa 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -82,7 +82,7 @@ use smithay::wayland::shell::xdg::decoration::XdgDecorationState;
use smithay::wayland::shell::xdg::XdgShellState;
use smithay::wayland::shm::ShmState;
use smithay::wayland::socket::ListeningSocketSource;
-use smithay::wayland::tablet_manager::{TabletManagerState, TabletSeatTrait};
+use smithay::wayland::tablet_manager::TabletManagerState;
use smithay::wayland::text_input::TextInputManagerState;
use smithay::wayland::viewporter::ViewporterState;
use smithay::wayland::virtual_keyboard::VirtualKeyboardManagerState;
@@ -1232,23 +1232,6 @@ impl Niri {
let mods_with_finger_scroll_binds =
mods_with_finger_scroll_binds(backend.mod_key(), &config_.binds);
- let (tx, rx) = calloop::channel::channel();
- event_loop
- .insert_source(rx, move |event, _, state| {
- if let calloop::channel::Event::Msg(image) = event {
- state.niri.cursor_manager.set_cursor_image(image);
- // FIXME: granular.
- state.niri.queue_redraw_all();
- }
- })
- .unwrap();
- seat.tablet_seat()
- .on_cursor_surface(move |_tool, new_image| {
- if let Err(err) = tx.send(new_image) {
- warn!("error sending new tablet cursor image: {err:?}");
- };
- });
-
let screenshot_ui = ScreenshotUi::new();
let config_error_notification = ConfigErrorNotification::new(config.clone());