From ff643184cf6e0ead1c549a8294e233e1f106e213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 21 Mar 2007 15:06:31 +0000 Subject: [PATCH] cursorPos() needs fixing svn path=/branches/work/kwin_composite/; revision=645024 --- COMPOSITE_TODO | 2 ++ utils.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/COMPOSITE_TODO b/COMPOSITE_TODO index 142255869b..0d93e849b7 100644 --- a/COMPOSITE_TODO +++ b/COMPOSITE_TODO @@ -69,6 +69,8 @@ General TODO * - perhaps there should be an option not to unmap windows in order to always have live thumbnails * - another option could be to unmap but quickly map when a live thumbnail is needed +* cursorPos() does not work reliably now (not from e.g. timers, it needs events), so it's disabled + OpenGL TODO ================================= diff --git a/utils.cpp b/utils.cpp index f4b2625844..917ef44cc1 100644 --- a/utils.cpp +++ b/utils.cpp @@ -430,6 +430,7 @@ static Time last_cursor_timestamp = CurrentTime; QPoint cursorPos() { + last_cursor_timestamp = CurrentTime; if( last_cursor_timestamp == CurrentTime || last_cursor_timestamp != QX11Info::appTime()) {