diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-03 21:55:26 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-06 15:09:29 (GMT) |
commit | 59d9b0703ba8efb24893528f2eb9c84aaa8f5f83 (patch) | |
tree | 30fd4de07fa1fdaaac4420c218e7fae3ff3a0382 /src/IconButton.hh | |
parent | a8b0b3632b4ed6e6fb5f8aa26a6c0ef151a30144 (diff) | |
download | fluxbox-59d9b0703ba8efb24893528f2eb9c84aaa8f5f83.zip fluxbox-59d9b0703ba8efb24893528f2eb9c84aaa8f5f83.tar.bz2 |
delay title updates
Notably shells will cause brief interim titles when calling
short-lived commands (try "ls"...)
This covers such by waiting 100ms after every title update before
reacting (the title will have returned in the mentioned cases, the UI
remains steady)
Diffstat (limited to 'src/IconButton.hh')
-rw-r--r-- | src/IconButton.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IconButton.hh b/src/IconButton.hh index 957374e..876cfe2 100644 --- a/src/IconButton.hh +++ b/src/IconButton.hh | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "FbTk/CachedPixmap.hh" | 28 | #include "FbTk/CachedPixmap.hh" |
29 | #include "FbTk/FbPixmap.hh" | 29 | #include "FbTk/FbPixmap.hh" |
30 | #include "FbTk/TextButton.hh" | 30 | #include "FbTk/TextButton.hh" |
31 | #include "FbTk/Timer.hh" | ||
31 | #include "FbTk/Signal.hh" | 32 | #include "FbTk/Signal.hh" |
32 | 33 | ||
33 | class IconbarTheme; | 34 | class IconbarTheme; |
@@ -92,6 +93,7 @@ private: | |||
92 | FbTk::CachedPixmap m_pm; | 93 | FbTk::CachedPixmap m_pm; |
93 | FbTk::SignalTracker m_signals; | 94 | FbTk::SignalTracker m_signals; |
94 | FbTk::Signal<> m_title_changed; | 95 | FbTk::Signal<> m_title_changed; |
96 | FbTk::Timer m_title_update_timer; | ||
95 | }; | 97 | }; |
96 | 98 | ||
97 | #endif // ICONBUTTON_HH | 99 | #endif // ICONBUTTON_HH |