Add tap to switch floating/tiling to TouchOverviewGrab
Browse files at this commit2d82fdd9c8b60f568c8acdb69864cb13e4e9b694Parent: 0cd84841 changed file +11 -0
src/input/touch_overview_grab.rsmodified+11 -0
| @@ -123,6 +123,17 @@ impl TouchGrab<State> for TouchOverviewGrab { | ||
| 123 | 123 | seq: Serial, |
| 124 | 124 | ) { |
| 125 | 125 | handle.down(data, None, event, seq); |
| 126 | + | |
| 127 | + if event.slot == self.start_data.slot { | |
| 128 | + return; | |
| 129 | + } | |
| 130 | + | |
| 131 | + if matches!(self.gesture, GestureState::InteractiveMove) { | |
| 132 | + if let Some(window) = &self.window.as_ref() { | |
| 133 | + data.niri.layout.toggle_window_floating(Some(window)); | |
| 134 | + data.niri.queue_redraw_all(); | |
| 135 | + } | |
| 136 | + } | |
| 126 | 137 | } |
| 127 | 138 | |
| 128 | 139 | fn up( |