aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a15c6e0..1ee8853 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -550,7 +550,7 @@ void FluxboxWindow::init() {
550 550
551 m_workspacesig.emit(*this); 551 m_workspacesig.emit(*this);
552 552
553 m_creation_time = FbTk::FbTime::now(); 553 m_creation_time = FbTk::FbTime::mono();
554 554
555 frame().frameExtentSig().emit(); 555 frame().frameExtentSig().emit();
556 556
@@ -2206,7 +2206,7 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) {
2206 // just after creation if the user has a saved position/size 2206 // just after creation if the user has a saved position/size
2207 if (m_creation_time) { 2207 if (m_creation_time) {
2208 2208
2209 uint64_t now = FbTk::FbTime::now(); 2209 uint64_t now = FbTk::FbTime::mono();
2210 2210
2211 Remember& rinst = Remember::instance(); 2211 Remember& rinst = Remember::instance();
2212 2212
@@ -2310,12 +2310,12 @@ void FluxboxWindow::keyPressEvent(XKeyEvent &ke) {
2310 } 2310 }
2311 2311
2312 // otherwise, make a note that the user is typing 2312 // otherwise, make a note that the user is typing
2313 m_last_keypress_time = FbTk::FbTime::now(); 2313 m_last_keypress_time = FbTk::FbTime::mono();
2314} 2314}
2315 2315
2316bool FluxboxWindow::isTyping() const { 2316bool FluxboxWindow::isTyping() const {
2317 2317
2318 uint64_t diff = FbTk::FbTime::now() - m_last_keypress_time; 2318 uint64_t diff = FbTk::FbTime::mono() - m_last_keypress_time;
2319 return ((diff / 1000) < screen().noFocusWhileTypingDelay()); 2319 return ((diff / 1000) < screen().noFocusWhileTypingDelay());
2320} 2320}
2321 2321