void KMovingConfig::save(void) { KConfigGroup cg(config, "Windows"); cg.writeEntry(KWIN_GEOMETRY, getGeometryTip()); cg.writeEntry(KWM_BRDR_SNAP_ZONE, getBorderSnapZone()); cg.writeEntry(KWM_WNDW_SNAP_ZONE, getWindowSnapZone()); cg.writeEntry(KWM_CNTR_SNAP_ZONE, getCenterSnapZone()); cg.writeEntry("SnapOnlyWhenOverlapping", m_ui->OverlapSnap->isChecked()); KConfigGroup(config, "Plugins").writeEntry("kwin4_effect_windowgeometryEnabled", getGeometryTip()); if (standAlone) { config->sync(); // Send signal to all kwin instances QDBusMessage message = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusConnection::sessionBus().send(message); } emit KCModule::changed(false); }
void KMovingConfig::save( void ) { int v; KConfigGroup cg(config, "Windows"); v = getMove(); if (v == TRANSPARENT) cg.writeEntry(KWIN_MOVE,"Transparent"); else cg.writeEntry(KWIN_MOVE,"Opaque"); cg.writeEntry(KWIN_GEOMETRY, getGeometryTip()); v = getResizeOpaque(); if (v == RESIZE_OPAQUE) cg.writeEntry(KWIN_RESIZE_OPAQUE, "Opaque"); else cg.writeEntry(KWIN_RESIZE_OPAQUE, "Transparent"); cg.writeEntry(KWIN_MOVE_RESIZE_MAXIMIZED, moveResizeMaximized->isChecked()); cg.writeEntry(KWM_BRDR_SNAP_ZONE,getBorderSnapZone()); cg.writeEntry(KWM_WNDW_SNAP_ZONE,getWindowSnapZone()); cg.writeEntry(KWM_CNTR_SNAP_ZONE,getCenterSnapZone()); cg.writeEntry("SnapOnlyWhenOverlapping",OverlapSnap->isChecked()); if (standAlone) { config->sync(); // Send signal to all kwin instances QDBusMessage message = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig"); QDBusConnection::sessionBus().send(message); } emit KCModule::changed(false); }