Do not show scratchpad windows after 'move to position'

Fixes #3832
This commit is contained in:
Orestis Floros 2019-10-15 18:40:59 +03:00
parent a638e0408e
commit b48ff2c5ec
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
2 changed files with 21 additions and 0 deletions

View File

@ -492,6 +492,11 @@ void floating_raise_con(Con *con) {
*
*/
bool floating_maybe_reassign_ws(Con *con) {
if (con_is_internal(con_get_workspace(con))) {
DLOG("Con in an internal workspace\n");
return false;
}
Output *output = get_output_from_rect(con->rect);
if (!output) {

View File

@ -532,5 +532,21 @@ is(scalar @{get_ws_content($ws)}, 0, 'no window in workspace');
cmd 'scratchpad show';
is($x->input_focus, $window->id, 'scratchpad window shown');
################################################################################
# 19: move position commands do not show scratchpad window
# See issue #3832
################################################################################
kill_all_windows;
fresh_workspace;
$first = open_window;
$second = open_window;
cmd '[id=' . $first->id . '] move to scratchpad, move position 100 100';
is ($x->input_focus, $second->id, 'moving scratchpad window does not show it');
cmd '[id=' . $first->id . '] move position center';
is ($x->input_focus, $second->id, 'centering scratchpad window does not show it');
done_testing;