Skip to content

Commit

Permalink
focus: Check target for fullscreen instead of workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Aug 8, 2024
1 parent e5a7dfb commit f9d3914
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2632,16 +2632,15 @@ impl Shell {
pub fn next_focus<'a>(&self, direction: FocusDirection, seat: &Seat<State>) -> FocusResult {
let overview = self.overview_mode().0;
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 {
return FocusResult::None;
};

if matches!(target, KeyboardFocusTarget::Fullscreen(_)) {
return FocusResult::None;
}

let set = self.workspaces.sets.get(&output).unwrap();
let sticky_layer = &set.sticky_layer;
let workspace = &set.workspaces[set.active];
Expand Down

0 comments on commit f9d3914

Please sign in to comment.