Skip internal workspaces with 'move workspace to output'

Fixes #3064.
This commit is contained in:
Orestis Floros
2017-12-01 16:12:43 +02:00
parent f6f198c3fe
commit e3f8939a58
2 changed files with 34 additions and 0 deletions

View File

@ -1121,6 +1121,10 @@ void cmd_move_workspace_to_output(I3_CMD, const char *name) {
owindow *current;
TAILQ_FOREACH(current, &owindows, owindows) {
Con *ws = con_get_workspace(current->con);
if (con_is_internal(ws)) {
continue;
}
bool success = workspace_move_to_output(ws, name);
if (!success) {
ELOG("Failed to move workspace to output.\n");