aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-11-20 07:43:26 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-11-20 13:08:25 (GMT)
commit3d7b466e7aff343dee152d4937d824d2860aac6b (patch)
tree08af9674bc83ccdf8e7a3154879ac1fb822987b5 /src/IconButton.cc
parente480255a7974cdc4b5cf0016169ed8347b2f431a (diff)
downloadfluxbox-3d7b466e7aff343dee152d4937d824d2860aac6b.zip
fluxbox-3d7b466e7aff343dee152d4937d824d2860aac6b.tar.bz2
delay repositioning of labels
The iconbuttons delay their update to cover multiple changes, so if the labels are repositioned early, they'll operate on dated titles BUG: 1155 On the run, centralize the delay value in IconButton::updateLaziness()
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index a4cd8af..1290c2a 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -52,7 +52,7 @@ IconButton::IconButton(const FbTk::FbWindow &parent,
52 m_theme(win, focused_theme, unfocused_theme), 52 m_theme(win, focused_theme, unfocused_theme),
53 m_pm(win.screen().imageControl()) { 53 m_pm(win.screen().imageControl()) {
54 54
55 m_title_update_timer.setTimeout(100 * FbTk::FbTime::IN_MILLISECONDS); 55 m_title_update_timer.setTimeout(updateLaziness());
56 m_title_update_timer.fireOnce(true); 56 m_title_update_timer.fireOnce(true);
57 FbTk::RefCount<FbTk::Command<void> > ets(new FbTk::SimpleCommand<IconButton>(*this, &IconButton::clientTitleChanged)); 57 FbTk::RefCount<FbTk::Command<void> > ets(new FbTk::SimpleCommand<IconButton>(*this, &IconButton::clientTitleChanged));
58 m_title_update_timer.setCommand(ets); 58 m_title_update_timer.setCommand(ets);