diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-20 12:18:59 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:32 (GMT) |
commit | 4f37ab0b981f7e7d12852ad5aec9fd5c540b2a14 (patch) | |
tree | 3c6e4e5dafa42d67aa4fc4cfd58fca23a5c8a38e | |
parent | a68149605b6e75c83b6e4431b46468dfc3aeebb8 (diff) | |
download | fluxbox_paul-4f37ab0b981f7e7d12852ad5aec9fd5c540b2a14.zip fluxbox_paul-4f37ab0b981f7e7d12852ad5aec9fd5c540b2a14.tar.bz2 |
Attach modifiedSig handlers to the session.screenX.tabs.intitlebar resource
-rw-r--r-- | src/FbWinFrame.cc | 4 | ||||
-rw-r--r-- | src/Screen.cc | 2 | ||||
-rw-r--r-- | src/Screen.hh | 2 | ||||
-rw-r--r-- | src/Window.cc | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 53cecf7..04e7944 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -100,7 +100,7 @@ FbWinFrame::FbWinFrame(BScreen &screen, unsigned int client_depth, | |||
100 | m_use_handle(true), | 100 | m_use_handle(true), |
101 | m_visible(false), | 101 | m_visible(false), |
102 | m_button_pm(0), | 102 | m_button_pm(0), |
103 | m_tabmode(screen.getDefaultInternalTabs()?INTERNAL:EXTERNAL), | 103 | m_tabmode(*screen.getDefaultInternalTabsResource()?INTERNAL:EXTERNAL), |
104 | m_active_orig_client_bw(0), | 104 | m_active_orig_client_bw(0), |
105 | m_need_render(true), | 105 | m_need_render(true), |
106 | m_button_size(1), | 106 | m_button_size(1), |
@@ -1464,7 +1464,7 @@ void FbWinFrame::applyDecorations(bool do_move) { | |||
1464 | // we rely on frame not doing anything if it is already shown/hidden | 1464 | // we rely on frame not doing anything if it is already shown/hidden |
1465 | if (m_state.useTitlebar()) { | 1465 | if (m_state.useTitlebar()) { |
1466 | client_move |= showTitlebar(); | 1466 | client_move |= showTitlebar(); |
1467 | if (m_screen.getDefaultInternalTabs()) | 1467 | if (*m_screen.getDefaultInternalTabsResource()) |
1468 | client_move |= setTabMode(INTERNAL); | 1468 | client_move |= setTabMode(INTERNAL); |
1469 | else | 1469 | else |
1470 | client_move |= setTabMode(EXTERNAL); | 1470 | client_move |= setTabMode(EXTERNAL); |
diff --git a/src/Screen.cc b/src/Screen.cc index c50abb7..5e88210 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1604,7 +1604,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1604 | 1604 | ||
1605 | _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar, | 1605 | _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar, |
1606 | "Tabs in Titlebar", "Tabs in Titlebar", | 1606 | "Tabs in Titlebar", "Tabs in Titlebar", |
1607 | resource.default_internal_tabs, save_and_reconftabs); | 1607 | resource.default_internal_tabs, saverc_cmd); |
1608 | tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, | 1608 | tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, |
1609 | "Maximize Over", "Maximize over this thing when maximizing"), | 1609 | "Maximize Over", "Maximize over this thing when maximizing"), |
1610 | resource.max_over_tabs, save_and_reconfigure)); | 1610 | resource.max_over_tabs, save_and_reconfigure)); |
diff --git a/src/Screen.hh b/src/Screen.hh index 58fd5ba..81812ba 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -125,7 +125,7 @@ public: | |||
125 | unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; } | 125 | unsigned int noFocusWhileTypingDelay() const { return *resource.typing_delay; } |
126 | const bool allowRemoteActions() const { return *resource.allow_remote_actions; } | 126 | const bool allowRemoteActions() const { return *resource.allow_remote_actions; } |
127 | const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; } | 127 | const bool clientMenuUsePixmap() const { return *resource.clientmenu_use_pixmap; } |
128 | const bool getDefaultInternalTabs() const { return *resource.default_internal_tabs; } | 128 | FbTk::BoolResource &getDefaultInternalTabsResource() { return resource.default_internal_tabs; } |
129 | FbTk::BoolResource &getTabsUsePixmapResource() { return resource.tabs_use_pixmap; } | 129 | FbTk::BoolResource &getTabsUsePixmapResource() { return resource.tabs_use_pixmap; } |
130 | const bool getMaxOverTabs() const { return *resource.max_over_tabs; } | 130 | const bool getMaxOverTabs() const { return *resource.max_over_tabs; } |
131 | 131 | ||
diff --git a/src/Window.cc b/src/Window.cc index 38bf748..200a462 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 | /**************************************************/ |