fix: follow the focus after alt+tab to another output
This commit is contained in:
parent
28ef6bdbc8
commit
56f84fba2d
1 changed files with 2 additions and 4 deletions
|
|
@ -111,10 +111,8 @@ impl ToplevelManagementHandler for State {
|
|||
std::mem::drop(shell);
|
||||
|
||||
// move pointer to window if it’s on a different monitor/output
|
||||
if seat.active_output() != *output
|
||||
&& self.common.config.cosmic_conf.cursor_follows_focus
|
||||
&& let Some(new_pos) = new_pos
|
||||
{
|
||||
let switching_output = seat.active_output() != *output;
|
||||
if switching_output && let Some(new_pos) = new_pos {
|
||||
seat.set_active_output(output);
|
||||
if let Some(ptr) = seat.get_pointer() {
|
||||
let serial = SERIAL_COUNTER.next_serial();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue