[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: GetMessageTime
From:       Alexandre Julliard <julliard () winehq ! com>
Date:       2001-09-26 15:49:21
[Download RAW message or body]

"David Hammerton" <david@transgaming.com> writes:

> BTW, One of the siderfects of this is: in dlls/x11drv/window.c line 1143,
> GetMessageTime() is sometimes 0 (depends on the applicatoin, for example the
> game Alice seems to make it return 0) - so the value sent to XSetInputFocus for
> the time is too small, and hence X refuses to give the window focus.

The real fix is that XSetInputFocus should not use GetMessageTime at
all, this is only a temporary hack. To conform to the ICCCM the focus
time should be based on the timestamp of a previous X event, and the
focus should never be changed if we didn't receive an event. To do
this right probably requires supporting the take focus protocol, as
was discussed some time ago.

-- 
Alexandre Julliard
julliard@winehq.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic