fix: don't request redraw for pointer
This commit is contained in:
parent
b87e660eed
commit
f5aa5a6f8c
1 changed files with 2 additions and 13 deletions
|
|
@ -1,8 +1,5 @@
|
|||
use crate::{
|
||||
event_loop::state::FrameStatus,
|
||||
platform_specific::wayland::{
|
||||
event_loop::state::SctkState, sctk_event::SctkEvent,
|
||||
},
|
||||
use crate::platform_specific::wayland::{
|
||||
event_loop::state::SctkState, sctk_event::SctkEvent,
|
||||
};
|
||||
use cctk::sctk::{
|
||||
delegate_pointer,
|
||||
|
|
@ -50,14 +47,6 @@ impl PointerHandler for SctkState {
|
|||
continue;
|
||||
}
|
||||
|
||||
let entry = self
|
||||
.frame_status
|
||||
.entry(e.surface.id())
|
||||
.or_insert(FrameStatus::RequestedRedraw);
|
||||
if matches!(entry, FrameStatus::Received) {
|
||||
*entry = FrameStatus::Ready;
|
||||
}
|
||||
|
||||
self.sctk_events.push(SctkEvent::PointerEvent {
|
||||
variant: PointerEvent {
|
||||
surface: e.surface.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue