diff options
-rw-r--r-- | src/Configmenu.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 728b82b..e15ab81 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Configmenu.cc,v 1.13 2002/04/12 15:14:09 fluxgen Exp $ | 25 | // $Id: Configmenu.cc,v 1.14 2002/04/28 16:00:27 fluxgen Exp $ |
26 | 26 | ||
27 | // stupid macros needed to access some functions in version 2 of the GNU C | 27 | // stupid macros needed to access some functions in version 2 of the GNU C |
28 | // library | 28 | // library |
@@ -195,6 +195,9 @@ void Configmenu::itemSelected(int button, unsigned int index) { | |||
195 | break; | 195 | break; |
196 | 196 | ||
197 | } | 197 | } |
198 | //save resources | ||
199 | Fluxbox::instance()->save_rc(); | ||
200 | |||
198 | } | 201 | } |
199 | } | 202 | } |
200 | 203 | ||
@@ -289,7 +292,10 @@ void Configmenu::Focusmenu::itemSelected(int button, unsigned int index) { | |||
289 | 292 | ||
290 | break; | 293 | break; |
291 | } | 294 | } |
292 | 295 | //save resources | |
296 | Fluxbox::instance()->save_rc(); | ||
297 | |||
298 | //toggle options | ||
293 | setItemSelected(0, !(configmenu->screen->isSloppyFocus() || | 299 | setItemSelected(0, !(configmenu->screen->isSloppyFocus() || |
294 | configmenu->screen->isSemiSloppyFocus())); | 300 | configmenu->screen->isSemiSloppyFocus())); |
295 | setItemSelected(1, configmenu->screen->isSloppyFocus()); | 301 | setItemSelected(1, configmenu->screen->isSloppyFocus()); |
@@ -427,6 +433,8 @@ void Configmenu::Placementmenu::itemSelected(int button, unsigned int index) { | |||
427 | 433 | ||
428 | break; | 434 | break; |
429 | } | 435 | } |
436 | //save resources | ||
437 | Fluxbox::instance()->save_rc(); | ||
430 | } | 438 | } |
431 | } | 439 | } |
432 | } | 440 | } |
@@ -638,7 +646,8 @@ void Configmenu::Tabmenu::itemSelected(int button, unsigned int index) { | |||
638 | configmenu->screen->saveTabRotateVertical(True); | 646 | configmenu->screen->saveTabRotateVertical(True); |
639 | break; | 647 | break; |
640 | } | 648 | } |
641 | 649 | //save resources | |
650 | Fluxbox::instance()->save_rc(); | ||
642 | Fluxbox::instance()->reconfigureTabs(); //TODO | 651 | Fluxbox::instance()->reconfigureTabs(); //TODO |
643 | setSelected(); | 652 | setSelected(); |
644 | } | 653 | } |