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:
parent
895ea6aec1
commit
b18a3a8bc7
5 changed files with 208 additions and 83 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue