mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Add tap to switch floating/tiling to TouchOverviewGrab
This commit is contained in:
@@ -123,6 +123,17 @@ impl TouchGrab<State> for TouchOverviewGrab {
|
||||
seq: Serial,
|
||||
) {
|
||||
handle.down(data, None, event, seq);
|
||||
|
||||
if event.slot == self.start_data.slot {
|
||||
return;
|
||||
}
|
||||
|
||||
if matches!(self.gesture, GestureState::InteractiveMove) {
|
||||
if let Some(window) = &self.window.as_ref() {
|
||||
data.niri.layout.toggle_window_floating(Some(window));
|
||||
data.niri.queue_redraw_all();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn up(
|
||||
|
||||
Reference in New Issue
Block a user