feat: workspace switching touchpad gestures

This commit is contained in:
Ryan Brue 2024-03-07 13:14:53 -06:00 committed by Victoria Brekenfeld
parent f1d8225ddb
commit fc2173d028
9 changed files with 767 additions and 89 deletions

View file

@ -3,7 +3,7 @@
use crate::{
backend::{kms::KmsState, winit::WinitState, x11::X11State},
config::{Config, OutputConfig},
input::Devices,
input::{gestures::GestureState, Devices},
shell::{grabs::SeatMoveGrabState, Shell},
utils::prelude::*,
wayland::protocols::{
@ -159,6 +159,7 @@ pub struct Common {
pub clock: Clock<Monotonic>,
pub should_stop: bool,
pub local_offset: time::UtcOffset,
pub gesture_state: Option<GestureState>,
pub theme: cosmic::Theme,
@ -423,6 +424,7 @@ impl State {
clock,
should_stop: false,
gesture_state: None,
theme: cosmic::theme::system_preference(),