aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.hh
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.hh
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.hh')
-rw-r--r--src/IconButton.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IconButton.hh b/src/IconButton.hh
index 4bb57e7..638d195 100644
--- a/src/IconButton.hh
+++ b/src/IconButton.hh
@@ -70,6 +70,8 @@ public:
70 70
71 const FbTk::Signal<> &titleChanged() { return m_title_changed; } 71 const FbTk::Signal<> &titleChanged() { return m_title_changed; }
72 72
73 static unsigned int updateLaziness() { return 100 * FbTk::FbTime::IN_MILLISECONDS; }
74
73protected: 75protected:
74 void drawText(int x, int y, FbTk::FbDrawable *drawable_override); 76 void drawText(int x, int y, FbTk::FbDrawable *drawable_override);
75private: 77private: