@@ -241,6 +241,7 @@ void CustomSettings::saveSettings() {
241241 settings.setValue (" windowControl/buttonOnRight" , !this ->isButtonOnLeft ());
242242 settings.setValue (" windowControl/enableButtonHighlight" , this ->isButtonHighlight ());
243243 settings.setValue (" windowControl/buttonHighlightColor" , this ->buttonHighLightColor );
244+ settings.setValue (" windowControl/allowDragWindowWhenMax" , this ->allowDragWindowWhenMax );
244245
245246 QSettings kwinrc (QDir::homePath () + " /.config/kwinrc" , QSettings::IniFormat);
246247 kwinrc.setValue (" Windows/BorderlessMaximizedWindows" , this ->hideTitleWhenMax );
@@ -265,6 +266,7 @@ void CustomSettings::readSettings() {
265266 this ->buttonHighlight = settings.value (" windowControl/enableButtonHighlight" , this ->isButtonHighlight ()).toBool ();
266267 this ->buttonHighLightColor = settings.value (" windowControl/buttonHighlightColor" , this ->buttonHighLightColor ).value <QColor>();
267268 this ->followSystemTheme = settings.value (" panel/followSystemTheme" , this ->isFollowSystemTheme ()).toBool ();
269+ this ->allowDragWindowWhenMax = settings.value (" windowControl/allowDragWindowWhenMax" , this ->allowDragWindowWhenMax ).toBool ();
268270
269271 QSettings kwinrc (QDir::homePath () + " /.config/kwinrc" , QSettings::IniFormat);
270272 this ->hideTitleWhenMax = kwinrc.value (" Windows/BorderlessMaximizedWindows" , false ).toBool ();
@@ -354,3 +356,12 @@ void CustomSettings::setFollowSystemTheme(bool followSystemTheme) {
354356 CustomSettings::followSystemTheme = followSystemTheme;
355357 emit settingsChanged ();
356358}
359+
360+ bool CustomSettings::isAllowDragWindowWhenMax () const {
361+ return allowDragWindowWhenMax;
362+ }
363+
364+ void CustomSettings::setAllowDragWindowWhenMax (bool allowDragWindowWhenMax) {
365+ CustomSettings::allowDragWindowWhenMax = allowDragWindowWhenMax;
366+ emit settingsChanged ();
367+ }
0 commit comments