shell: Don't engage new MoveGrabs while in Overview

This commit is contained in:
Victoria Brekenfeld 2025-04-15 16:15:24 +02:00
parent 67d3225ef5
commit b53eb508a8

View file

@ -150,6 +150,10 @@ impl OverviewMode {
}
}
pub fn is_active(&self) -> bool {
matches!(self, OverviewMode::Started(_, _) | OverviewMode::Active(_))
}
pub fn active_trigger(&self) -> Option<&Trigger> {
if let OverviewMode::Started(trigger, _) | OverviewMode::Active(trigger) = self {
Some(trigger)
@ -2942,6 +2946,10 @@ impl Shell {
evlh: &LoopHandle<'static, State>,
client_initiated: bool,
) -> Option<(MoveGrab, Focus)> {
if self.overview_mode().0.is_active() {
return None;
}
let serial = serial.into();
let mut start_data =