diff --git a/tiling.cpp b/tiling.cpp index 07411f3a8d..b773c1a1cd 100644 --- a/tiling.cpp +++ b/tiling.cpp @@ -82,7 +82,9 @@ void Workspace::slotToggleTiling() void Workspace::createTile( Client *c ) { - if( c == NULL ) return; + if( c == NULL ) + return; + if( c->desktop() < 0 || c->desktop() >= tilingLayouts.size() ) return; kDebug(1212) << "Now tiling " << c->caption();