aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-20 12:18:59 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-20 12:18:59 (GMT)
commitebfe4f98246c1fe3592e87ca4936da90bd9cb3a5 (patch)
tree2a816eb2d73aa161660f8569ff930e5c7fd7e84e /src
parente00e6856575ab0cd193e198ae406bdf2149429e4 (diff)
downloadfluxbox_pavel-ebfe4f98246c1fe3592e87ca4936da90bd9cb3a5.zip
fluxbox_pavel-ebfe4f98246c1fe3592e87ca4936da90bd9cb3a5.tar.bz2
Attach modifiedSig handlers to the session.screenX.tabs.intitlebar resource
Diffstat (limited to 'src')
-rw-r--r--src/FbWinFrame.cc4
-rw-r--r--src/Screen.cc2
-rw-r--r--src/Screen.hh2
-rw-r--r--src/Window.cc3
4 files changed, 7 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index a8ee4d5..1c34efd 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -84,7 +84,7 @@ FbWinFrame::FbWinFrame(BScreen &screen, WindowState &state,
84 m_use_handle(true), 84 m_use_handle(true),
85 m_visible(false), 85 m_visible(false),
86 m_button_pm(0), 86 m_button_pm(0),
87 m_tabmode(screen.getDefaultInternalTabs()?INTERNAL:EXTERNAL), 87 m_tabmode(*screen.getDefaultInternalTabsResource()?INTERNAL:EXTERNAL),
88 m_active_orig_client_bw(0), 88 m_active_orig_client_bw(0),
89 m_need_render(true), 89 m_need_render(true),
90 m_button_size(1), 90 m_button_size(1),
@@ -1448,7 +1448,7 @@ void FbWinFrame::applyDecorations(bool do_move) {
1448 // we rely on frame not doing anything if it is already shown/hidden 1448 // we rely on frame not doing anything if it is already shown/hidden
1449 if (m_state.useTitlebar()) { 1449 if (m_state.useTitlebar()) {
1450 client_move |= showTitlebar(); 1450 client_move |= showTitlebar();
1451 if (m_screen.getDefaultInternalTabs()) 1451 if (*m_screen.getDefaultInternalTabsResource())
1452 client_move |= setTabMode(INTERNAL); 1452 client_move |= setTabMode(INTERNAL);
1453 else 1453 else
1454 client_move |= setTabMode(EXTERNAL); 1454 client_move |= setTabMode(EXTERNAL);
diff --git a/src/Screen.cc b/src/Screen.cc
index d34990a..d8ec167 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1555,7 +1555,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1555 1555
1556 _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar, 1556 _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar,
1557 "Tabs in Titlebar", "Tabs in Titlebar", 1557 "Tabs in Titlebar", "Tabs in Titlebar",
1558 resource.default_internal_tabs, save_and_reconftabs); 1558 resource.default_internal_tabs, saverc_cmd);
1559 tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, 1559 tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver,
1560 "Maximize Over", "Maximize over this thing when maximizing"), 1560 "Maximize Over", "Maximize over this thing when maximizing"),
1561 resource.max_over_tabs, save_and_reconfigure)); 1561 resource.max_over_tabs, save_and_reconfigure));
diff --git a/src/Screen.hh b/src/Screen.hh
index 0321940..c524a91 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -124,7 +124,7 @@ public:
124 unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; } 124 unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; }
125 const bool allowRemoteActions() const { return *resource.allow_remote_actions; } 125 const bool allowRemoteActions() const { return *resource.allow_remote_actions; }
126 const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; } 126 const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; }
127 const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; } 127 FbTk::BoolResource &getDefaultInternalTabsResource() { return resource.default_internal_tabs; }
128 FbTk::BoolResource &getTabsUsePixmapResource() { return resource.tabs_use_pixmap; } 128 FbTk::BoolResource &getTabsUsePixmapResource() { return resource.tabs_use_pixmap; }
129 const bool getMaxOverTabs() const { return *resource.max_over_tabs; } 129 const bool getMaxOverTabs() const { return *resource.max_over_tabs; }
130 130
diff --git a/src/Window.cc b/src/Window.cc
index 339ec06..c97b0a3 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -429,6 +429,9 @@ void FluxboxWindow::init() {
429 m_timer.setCommand(raise_cmd); 429 m_timer.setCommand(raise_cmd);
430 m_timer.fireOnce(true); 430 m_timer.fireOnce(true);
431 431
432 join(screen().getDefaultInternalTabsResource().modifiedSig(),
433 FbTk::MemFunIgnoreArgs(*this, &FluxboxWindow::applyDecorations));
434
432 /**************************************************/ 435 /**************************************************/
433 /* Read state above here, apply state below here. */ 436 /* Read state above here, apply state below here. */
434 /**************************************************/ 437 /**************************************************/