Extend the kconf update for 4.4 so that desktop switch on screen edge does not get disabled by quick maximize/tiling.

Changing the id, so that the script gets executed for those who already run it (tabbox settings will not be changed when the script runs once, so it's safe).
BUG: 217770

svn path=/trunk/KDE/kdebase/workspace/; revision=1063869
This commit is contained in:
Martin Gräßlin 2009-12-19 13:23:53 +00:00
parent 34ef68d122
commit 8745bd9913
2 changed files with 10 additions and 1 deletions

View file

@ -1,2 +1,2 @@
Id=Kwin-Tabbox Id=Kwin-4.4
Script=kwin_update_tabbox_settings Script=kwin_update_tabbox_settings

View file

@ -45,6 +45,15 @@ int main( int argc, char* argv[] )
if( !tabbox.hasKey("ShowTabBox") ) if( !tabbox.hasKey("ShowTabBox") )
tabbox.writeEntry("ShowTabBox", (style.compare("KDE", Qt::CaseInsensitive) == 0)?true:false); tabbox.writeEntry("ShowTabBox", (style.compare("KDE", Qt::CaseInsensitive) == 0)?true:false);
tabbox.sync(); tabbox.sync();
// screen edges - disable quick tiling when switch on desktop edge is activated
KConfigGroup borders(&config, "ElectricBorders");
if( borders.readEntry<int>("ElectricBorders", 0) >= 1 &&
!borders.hasKey("ElectricBorderMaximize") && !borders.hasKey("ElectricBorderTiling") )
{
borders.writeEntry("ElectricBorderMaximize", false);
borders.writeEntry("ElectricBorderTiling", false);
}
borders.sync();
config.sync(); config.sync();
// Send signal to all kwin instances // Send signal to all kwin instances
QDBusMessage message = QDBusMessage message =