shell: Send frame callbacks to grabbed windows

This commit is contained in:
Victoria Brekenfeld 2023-02-13 17:56:13 +01:00
parent 4a9dfcead0
commit f93258bd98
2 changed files with 27 additions and 2 deletions

View file

@ -3,7 +3,7 @@
use crate::{
backend::{kms::KmsState, winit::WinitState, x11::X11State},
config::{Config, OutputConfig},
shell::Shell,
shell::{layout::floating::SeatMoveGrabState, Shell},
utils::prelude::*,
wayland::protocols::{
drm::WlDrmState,
@ -386,6 +386,17 @@ impl Common {
|_, _| None,
)
}
if let Some(move_grab) = seat.user_data().get::<SeatMoveGrabState>() {
if let Some(grab_state) = move_grab.borrow().as_ref() {
grab_state.send_frames(
output,
time,
throttle,
surface_primary_scanout_output,
);
}
}
}
}