Re: XTranslateCoordinates() performance problem
- From: Keith Packard <keithp keithp com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: XTranslateCoordinates() performance problem
- Date: Thu, 15 Nov 2001 21:36:50 -0800
Around 23 o'clock on Nov 15, Owen Taylor wrote:
> 2) Use the last x, y received for the event, then queue
> an idle with a priority lower than events in which
> you actually call XTranslateCoordinates() and
> synthesize a pure-move ConfigureNotify if the
> x, y you retrieve are different than the last x,y.
You needn't ever call XTranslateCoordinates -- the window manager will
eventually send you a synthetic configure notify whenever your position
changes. Ignore all position information in real configure notify events
and replace them with the last coordinates from a synthetic configure.
That's what Xt does. The only effect is that the application is slightly
behind the server when resizing occurs, but this is benign as the synthetic
event will follow shortly.
keithp keithp com XFree86 Core Team SuSE, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]