refactor: use cctk
This commit is contained in:
parent
1b8a399ebd
commit
6e91eabf4c
46 changed files with 224 additions and 183 deletions
|
|
@ -4,7 +4,7 @@ use crate::{
|
|||
event_loop::state::SctkState, sctk_event::SctkEvent,
|
||||
},
|
||||
};
|
||||
use sctk::{
|
||||
use cctk::sctk::{
|
||||
delegate_pointer,
|
||||
reexports::client::Proxy,
|
||||
seat::pointer::{
|
||||
|
|
@ -22,10 +22,10 @@ use winit::{
|
|||
impl PointerHandler for SctkState {
|
||||
fn pointer_frame(
|
||||
&mut self,
|
||||
conn: &sctk::reexports::client::Connection,
|
||||
_qh: &sctk::reexports::client::QueueHandle<Self>,
|
||||
pointer: &sctk::reexports::client::protocol::wl_pointer::WlPointer,
|
||||
events: &[sctk::seat::pointer::PointerEvent],
|
||||
conn: &cctk::sctk::reexports::client::Connection,
|
||||
_qh: &cctk::sctk::reexports::client::QueueHandle<Self>,
|
||||
pointer: &cctk::sctk::reexports::client::protocol::wl_pointer::WlPointer,
|
||||
events: &[cctk::sctk::seat::pointer::PointerEvent],
|
||||
) {
|
||||
let (is_active, my_seat) =
|
||||
match self.seats.iter_mut().enumerate().find_map(|(i, s)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue