Fix required if statement before switch
This commit is contained in:
parent
b23f2ab3dd
commit
69417dd5f7
1 changed files with 3 additions and 6 deletions
|
@ -70,13 +70,10 @@ void Placement::place(AbstractClient *c, const QRect &area)
|
|||
|
||||
void Placement::place(AbstractClient *c, const QRect &area, Policy policy, Policy nextPlacement)
|
||||
{
|
||||
switch (policy) {
|
||||
case Unknown:
|
||||
policy = Default;
|
||||
break;
|
||||
case Default:
|
||||
if (policy == Unknown || policy == Default)
|
||||
policy = options->placement();
|
||||
break;
|
||||
|
||||
switch (policy) {
|
||||
case NoPlacement:
|
||||
return;
|
||||
case Random:
|
||||
|
|
Loading…
Reference in a new issue