focus: Check target for fullscreen instead of workspace
This commit is contained in:
parent
e5a7dfbdb0
commit
f9d39144ed
1 changed files with 4 additions and 5 deletions
|
|
@ -2632,16 +2632,15 @@ impl Shell {
|
||||||
pub fn next_focus<'a>(&self, direction: FocusDirection, seat: &Seat<State>) -> FocusResult {
|
pub fn next_focus<'a>(&self, direction: FocusDirection, seat: &Seat<State>) -> FocusResult {
|
||||||
let overview = self.overview_mode().0;
|
let overview = self.overview_mode().0;
|
||||||
let output = seat.active_output();
|
let output = seat.active_output();
|
||||||
let workspace = self.active_space(&output);
|
|
||||||
|
|
||||||
if workspace.fullscreen.is_some() {
|
|
||||||
return FocusResult::None;
|
|
||||||
}
|
|
||||||
|
|
||||||
let Some(target) = seat.get_keyboard().unwrap().current_focus() else {
|
let Some(target) = seat.get_keyboard().unwrap().current_focus() else {
|
||||||
return FocusResult::None;
|
return FocusResult::None;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if matches!(target, KeyboardFocusTarget::Fullscreen(_)) {
|
||||||
|
return FocusResult::None;
|
||||||
|
}
|
||||||
|
|
||||||
let set = self.workspaces.sets.get(&output).unwrap();
|
let set = self.workspaces.sets.get(&output).unwrap();
|
||||||
let sticky_layer = &set.sticky_layer;
|
let sticky_layer = &set.sticky_layer;
|
||||||
let workspace = &set.workspaces[set.active];
|
let workspace = &set.workspaces[set.active];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue