Bug 267913 - Display#getLastEventTime () not right
Summary: Display#getLastEventTime () not right
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 267874
  Show dependency tree
 
Reported: 2009-03-10 13:01 EDT by Felipe Heidrich CLA
Modified: 2009-03-11 09:41 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Heidrich CLA 2009-03-10 13:01:36 EDT
Version: 3.5.0
Build id: I20090310-0100

getLastEventTime() returns System.currentTimeMillis ()

See:
int getLastEventTime () {
	/*
	* This code is intentionally commented.  Event time is
	* in seconds and we need an accurate time in milliseconds.
	*/
//	return (int) (OS.GetLastUserEventTime () * 1000.0);
	return (int) System.currentTimeMillis ();
}


this causes Bug 267874
Comment 1 Felipe Heidrich CLA 2009-03-10 13:04:53 EDT
can you add a slot in Display (somethine like: long lastMessageTime;) and update it in each windowProcDelegate ?
Comment 2 Silenio Quarti CLA 2009-03-10 16:38:01 EDT
Fixed for M6.
Comment 3 Dani Megert CLA 2009-03-11 03:40:09 EDT
Is the fix also applied/working for Carbon? We see bug 267874 on Cocoa and Carbon.
Comment 4 Silenio Quarti CLA 2009-03-11 09:41:54 EDT
Yes, both cocoa and carbon are fixed in M6.