aboutsummaryrefslogtreecommitdiff
path: root/src/Rootmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Rootmenu.cc')
-rw-r--r--src/Rootmenu.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Rootmenu.cc b/src/Rootmenu.cc
index c0de857..4e92d5f 100644
--- a/src/Rootmenu.cc
+++ b/src/Rootmenu.cc
@@ -19,8 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// stupid macros needed to access some functions in version 2 of the GNU C 22//Use GNU extensions
23// library
24#ifndef _GNU_SOURCE 23#ifndef _GNU_SOURCE
25#define _GNU_SOURCE 24#define _GNU_SOURCE
26#endif // _GNU_SOURCE 25#endif // _GNU_SOURCE
@@ -97,14 +96,14 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
97 case BScreen::SETSTYLE: 96 case BScreen::SETSTYLE:
98 if (item->exec().size()) { 97 if (item->exec().size()) {
99 fluxbox->saveStyleFilename(item->exec().c_str()); 98 fluxbox->saveStyleFilename(item->exec().c_str());
100 fluxbox->reconfigureTabs(); //TODO 99 fluxbox->reconfigureTabs();
101 } 100 }
102 101 fluxbox->reconfigure();
102 break;
103 case BScreen::RECONFIGURE: 103 case BScreen::RECONFIGURE:
104 fluxbox->reconfigure(); 104 fluxbox->reconfigure();
105 return; 105 return;
106 } 106 }
107
108 if (! (screen->getRootmenu()->isTorn() || isTorn()) && 107 if (! (screen->getRootmenu()->isTorn() || isTorn()) &&
109 item->function() != BScreen::RECONFIGURE && 108 item->function() != BScreen::RECONFIGURE &&
110 item->function() != BScreen::SETSTYLE) 109 item->function() != BScreen::SETSTYLE)