Bug 166720 - Impossible to disable Box Switch
Summary: Impossible to disable Box Switch
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: KDE Bugs List
URL:
Keywords:
: 167161 167230 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-16 12:33 UTC by Antonio Bulgheroni
Modified: 2008-07-23 03:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Bulgheroni 2008-07-16 12:34:28 UTC
Version:           kwin -version Qt: 4.4.0 KDE: 4.00.98 (KDE 4.0.98 (4.1 RC1)) KWin: 3.0  (using KDE 4.0.98)
Installed from:    Fedora RPMs

Standard installation of KDE4.1rc1 from the unstable KDE repo.

It is impossible to disable the cover switch effect. 

How to reproduce (having the desktop effects activated) 

1. Open System Config
2. Go to Desktop
3. Desktop Effects
4. Move to the All effects tab
5. Deselect Box Switch
6. Click on apply
7. Move to the General tab
8. Move back to All effects tab and the Box Switch will be (magically) selected again.

Anyway, it looks like that it is impossible to disable the effect, that is very bad if you have also the flip switch activated. 

Expected Bahaviour:
The Box switch should be disabled. 

Thanks for helping
Comment 1 Martin Flöser 2008-07-16 14:24:06 UTC
which of the effects do you want to disable? Coverswitch or boxswitch? You first name coverswitch later on you only talk about boxswitch.

Nevertheless I am unable to reproduce this behaviour. On my system moving back to the general tab does not change anything. You could also try to close the dialog with OK button.
Comment 2 Antonio Bulgheroni 2008-07-16 14:45:55 UTC
Sorry I meant Box Switch. 

There is no OK button on the dialog! If I simply close the dialog clicking on the X in the top right corner, the Box Switch is still active. Even if I do so reopening the System Setting - Desktop - All effects shows that Box Switch is active. 

I'm tempted to send you a video recording of what is happening. Unfortunately I don't have another installation to try.

Is there a way to change it from a configuration file? 

cheers,

Comment 3 Antonio Bulgheroni 2008-07-16 15:16:27 UTC
If you wish you can see what is going on my computer looking at this video:

http://www.youtube.com/watch?v=bg1L-o05lx0

thanks
Comment 4 Martin Flöser 2008-07-16 15:26:23 UTC
Please try it without using systemsettings. Just open the context menu of the window decoration and choose the settings entry. There you can configure the effects as well as in systemsettings and there is an OK button.

But I also failed to reproduce with using systemsettings.
Comment 5 lucas 2008-07-16 15:32:00 UTC
I can reproduce with latest trunk, occurs both in System Settings and through the window menu. Can't pinpoint the problem though.
Comment 6 Martin Flöser 2008-07-16 15:52:23 UTC
damn it - I just switched to the packages provided by the distribution and here I am able to reproduce. Seems I did not yet have a recent enough build for this bug.

Temporary workaround:
- edit the file ~/.kde/share/kwinrc (in some distributions it is .kde4)
- find the section [Plugins]
- change the line "kwin4_effect_boxswitchEnabled=true" to "win4_effect_boxswitchEnabled=false"
- close file
- reload config (easiest way: alt+shift+F12 to disable compositing and again to enable)
Comment 7 lucas 2008-07-16 16:02:17 UTC
While going back to the main settings menu I receive the "unsaved changes" message, clicking Okay then going back into effects I can now disable the box effect no problem.
Comment 8 Antonio Bulgheroni 2008-07-16 16:12:05 UTC
To Martin

The file to edit on a standard F9 installation is ~/.kde/share/config/kwinrc (you forgot a "config").

To Lucas
Yes it looks like the plugin is not active, or at least is not ticked. But the plugin is active anyway... Try to Alt+Tab...

Anyway, if I reopen the System Setting the tick is still there...
Comment 9 lucas 2008-07-16 16:35:03 UTC
Found the problem:

The "Improved window management" checkbox conflicts with the "All effects" selection. If it's checked it enables a list of predefined effects, effectively making them (sometimes) impossible to disable.
Comment 10 Martin Flöser 2008-07-16 17:06:54 UTC
Lucas I think you are right. This used to become a dashed checkbox (three state check box) when you disabled one of the default boxes.

I found the reason: sebas activated another effect (rev 829757). That is the code:
define LOAD_EFFECT_CONFIG(effectname)  effectconfig.readEntry("kwin4_effect_" effectname "Enabled", true)
    int winManagementEnabled = LOAD_EFFECT_CONFIG("presentwindows")
        + LOAD_EFFECT_CONFIG("boxswitch")
        + LOAD_EFFECT_CONFIG("desktopgrid")
        + LOAD_EFFECT_CONFIG("dialogparent")
        + LOAD_EFFECT_CONFIG("trackmouse");
    if (winManagementEnabled > 0 && winManagementEnabled < 4) {
        ui.effectWinManagement->setTristate(true);
        ui.effectWinManagement->setCheckState(Qt::PartiallyChecked);
    }
    else
        ui.effectWinManagement->setChecked(winManagementEnabled);
    ui.effectShadows->setChecked(LOAD_EFFECT_CONFIG("shadow"));
    ui.effectAnimations->setChecked(LOAD_EFFECT_CONFIG("minimizeanimation"));
#undef LOAD_EFFECT_CONFIG

So if we change to < 5 it will hopefully work. Can somebody please test it, I have hardly the time for it
Comment 11 lucas 2008-07-16 17:08:30 UTC
I have already committed the change in revision 833261 however it seems like Bugzilla once again didn't pick it up. Closing manually.
Comment 12 Martin Flöser 2008-07-21 20:18:24 UTC
*** Bug 167161 has been marked as a duplicate of this bug. ***
Comment 13 lucas 2008-07-23 03:13:09 UTC
*** Bug 167230 has been marked as a duplicate of this bug. ***