diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-20 12:18:59 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-18 21:04:23 (GMT) |
commit | 95979a5e611569e50ffb60417a82703125559b4f (patch) | |
tree | 404e01bf0665920ccdb543fc07867235af012eb5 | |
parent | f41794f2f55ed0835316e4f9d0a3e20d881d3cbd (diff) | |
download | fluxbox_pavel-95979a5e611569e50ffb60417a82703125559b4f.zip fluxbox_pavel-95979a5e611569e50ffb60417a82703125559b4f.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 937f87f..d51ffdf 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -103,7 +103,7 @@ FbWinFrame::FbWinFrame(BScreen &screen, unsigned int client_depth, | |||
103 | m_use_handle(true), | 103 | m_use_handle(true), |
104 | m_visible(false), | 104 | m_visible(false), |
105 | m_button_pm(0), | 105 | m_button_pm(0), |
106 | m_tabmode(screen.getDefaultInternalTabs()?INTERNAL:EXTERNAL), | 106 | m_tabmode(*screen.getDefaultInternalTabsResource()?INTERNAL:EXTERNAL), |
107 | m_active_orig_client_bw(0), | 107 | m_active_orig_client_bw(0), |
108 | m_need_render(true), | 108 | m_need_render(true), |
109 | m_button_size(1), | 109 | m_button_size(1), |
@@ -1467,7 +1467,7 @@ void FbWinFrame::applyDecorations(bool do_move) { | |||
1467 | // we rely on frame not doing anything if it is already shown/hidden | 1467 | // we rely on frame not doing anything if it is already shown/hidden |
1468 | if (m_state.useTitlebar()) { | 1468 | if (m_state.useTitlebar()) { |
1469 | client_move |= showTitlebar(); | 1469 | client_move |= showTitlebar(); |
1470 | if (m_screen.getDefaultInternalTabs()) | 1470 | if (*m_screen.getDefaultInternalTabsResource()) |
1471 | client_move |= setTabMode(INTERNAL); | 1471 | client_move |= setTabMode(INTERNAL); |
1472 | else | 1472 | else |
1473 | client_move |= setTabMode(EXTERNAL); | 1473 | client_move |= setTabMode(EXTERNAL); |
diff --git a/src/Screen.cc b/src/Screen.cc index 87b6923..c8e4ad7 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1636,7 +1636,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1636 | 1636 | ||
1637 | _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar, | 1637 | _BOOLITEM(*tab_menu,Configmenu, TabsInTitlebar, |
1638 | "Tabs in Titlebar", "Tabs in Titlebar", | 1638 | "Tabs in Titlebar", "Tabs in Titlebar", |
1639 | resource.default_internal_tabs, save_and_reconftabs); | 1639 | resource.default_internal_tabs, saverc_cmd); |
1640 | tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, | 1640 | tab_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, |
1641 | "Maximize Over", "Maximize over this thing when maximizing"), | 1641 | "Maximize Over", "Maximize over this thing when maximizing"), |
1642 | resource.max_over_tabs, save_and_reconfigure)); | 1642 | 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 a8756b7..fae5272 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -441,6 +441,9 @@ void FluxboxWindow::init() { | |||
441 | m_timer.setCommand(raise_cmd); | 441 | m_timer.setCommand(raise_cmd); |
442 | m_timer.fireOnce(true); | 442 | m_timer.fireOnce(true); |
443 | 443 | ||
444 | join(screen().getDefaultInternalTabsResource().modifiedSig(), | ||
445 | FbTk::MemFunIgnoreArgs(*this, &FluxboxWindow::applyDecorations)); | ||
446 | |||
444 | /**************************************************/ | 447 | /**************************************************/ |
445 | /* Read state above here, apply state below here. */ | 448 | /* Read state above here, apply state below here. */ |
446 | /**************************************************/ | 449 | /**************************************************/ |