shell: Touch support for move grab

Touch support is still needed for other grabs. And SSDs (and libcosmic)
need to start move/menu/etc. based on touch.
This commit is contained in:
Ian Douglas Scott 2024-04-04 19:17:03 -07:00 committed by Victoria Brekenfeld
parent 895ea6aec1
commit b18a3a8bc7
5 changed files with 208 additions and 83 deletions

View file

@ -1378,6 +1378,16 @@ impl State {
}
}
InputEvent::TouchUp { event, .. } => {
if let OverviewMode::Started(Trigger::Touch(slot), _) =
self.common.shell.overview_mode().0
{
if slot == event.slot() {
self.common
.shell
.set_overview_mode(None, self.common.event_loop_handle.clone());
}
}
if let Some(seat) = self.common.seat_with_device(&event.device()) {
let serial = SERIAL_COUNTER.next_serial();
let touch = seat.get_touch().unwrap();