autocommit 2022-04-02 19:38:13 CEST
This commit is contained in:
parent
6ad6d83b7e
commit
6de9fb8303
18 changed files with 112 additions and 51 deletions
|
|
@ -197,7 +197,7 @@ impl WlSeatGlobal {
|
|||
let is_container = new.is_container();
|
||||
for tl in self.toplevel_focus_history.rev_iter() {
|
||||
match tl.as_node().get_workspace() {
|
||||
Some(ws) if ws.id == workspace.id => { },
|
||||
Some(ws) if ws.id == workspace.id => {}
|
||||
_ => continue,
|
||||
};
|
||||
let parent_is_float = match tl.parent() {
|
||||
|
|
@ -412,7 +412,9 @@ impl WlSeatGlobal {
|
|||
// Enter callbacks
|
||||
impl WlSeatGlobal {
|
||||
pub fn enter_toplevel(self: &Rc<Self>, n: Rc<dyn ToplevelNode>) {
|
||||
self.focus_toplevel(n);
|
||||
if n.accepts_keyboard_focus() {
|
||||
self.focus_toplevel(n);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn enter_popup(self: &Rc<Self>, _n: &Rc<XdgPopup>) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use std::ops::Deref;
|
||||
use crate::ifs::wl_seat::WlSeatGlobal;
|
||||
use crate::tree::{Node, OutputNode};
|
||||
use crate::utils::clonecell::CloneCell;
|
||||
use std::ops::Deref;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct KbOwnerHolder {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue