added cursor_follows_focus and focus_follows_cursor
This commit is contained in:
parent
52280e9823
commit
7da0bc430a
22 changed files with 844 additions and 384 deletions
|
|
@ -272,7 +272,7 @@ impl State {
|
|||
if let Some(target) = res {
|
||||
let seat = shell.seats.last_active().clone();
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(self, Some(&target), &seat, None);
|
||||
Shell::set_focus(self, Some(&target), &seat, None, true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -290,7 +290,7 @@ impl State {
|
|||
if let Some(target) = shell.map_layer(&layer_surface) {
|
||||
let seat = shell.seats.last_active().clone();
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(self, Some(&target), &seat, None);
|
||||
Shell::set_focus(self, Some(&target), &seat, None, false);
|
||||
}
|
||||
layer_surface.layer_surface().send_configure();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue