Fix required if statement before switch

This commit is contained in:
Kristen McWilliam 2021-09-19 12:22:56 -04:00 committed by Vlad Zahorodnii
parent b23f2ab3dd
commit 69417dd5f7

View file

@ -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: