shell: Don't engage new MoveGrabs while in Overview
This commit is contained in:
parent
67d3225ef5
commit
b53eb508a8
1 changed files with 8 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue