Hardcode TabBox setting in boxswitch effect false

Boxswitch is activated as tabbox, possibly due to a downstream issue
This results in multiple effects being assigned to the tabbox and no
GUI way for the user to fix this.
Since the BoxSwitch effects nowadays only exists  as sidearm for
coverswitch, the tabbox setting is now hardcoded and disabled in the
effect, making it completely impossible to accidentally use it as tabbox.

BUG: 303387
REVIEW: 106695
FIXED-IN: 4.9.3
icc-effect-5.14.5
Thomas Lübking 2012-10-03 18:57:00 +02:00
parent dbf2623e87
commit 6cba742315
1 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,7 @@ BoxSwitchEffect::BoxSwitchEffect()
, painting_desktop(0)
, animation(false)
, highlight_is_set(false)
, primaryTabBox(true)
, primaryTabBox(false)
, secondaryTabBox(false)
, mProxy(this)
, mProxyActivated(0)
@ -86,8 +86,9 @@ void BoxSwitchEffect::reconfigure(ReconfigureFlags)
elevate_window = conf.readEntry("ElevateSelected", true);
mAnimateSwitch = conf.readEntry("AnimateSwitch", false);
primaryTabBox = conf.readEntry("TabBox", false);
secondaryTabBox = conf.readEntry("TabBoxAlternative", false);
// the tabbox merely exists as CoverSwitch sidearm, force it to be not the tabbox
primaryTabBox = false;
secondaryTabBox = false;
}
void BoxSwitchEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time)