Bugfix: Don’t focus the wrong workspace when moving to scratchpad (+test) (Thanks loblik)
The problem was that scratchpad_move() didn’t check whether the source workspace was focused. Therefore, 'move scratchpad' only worked reliably interactively , but not when used with criteria.
This commit is contained in:
@ -58,7 +58,8 @@ void scratchpad_move(Con *con) {
|
||||
|
||||
/* 4: Fix focus. Normally, when moving a window to a different output, the
|
||||
* destination output gets focused. In this case, we don’t want that. */
|
||||
con_focus(focus_next);
|
||||
if (con_get_workspace(focus_next) == con_get_workspace(focused))
|
||||
con_focus(focus_next);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user