[comp.windows.x.motif] CompressExposeMaximum & Motif

ferrara@esacs.UUCP (Giancarlo Ferrara) (04/09/91)

I am attempting to add a "debug" option to the table widget that
show a grid row/column based so people can easy understand where
really are positioned the children according the table's logic.

It is no so hard BUT also if i request maximum compression for the
expose, while i am receiving just one event if I iconify/deiconify
the window, when i resize it a lot of expose are received (10+).

The algorithm is very simple: on exposure, clear the old grid and
redraw the new one; I have added a resource 'debugWidth' (line width
for the grid) and this enforce spacing and margin to allow this grid
to be drawned.

I was always thinking that compressing the exposure, if not ensure you
to have just one expose event, compress all the events in the queue into
one. Now it seems that when the children are repaint, other expose events
are generated for the container during a resize.

Is this true? How can i avoid screen flashing? I have done a "patch" just
to not clear if the gird is not changed, but anyway with a lot of children
the interface, also if not flashing, is frozen for a "long" time due to
the redrawing activity.

Any suggestion is apreciated!
Giancarlo
uunet!i2unix!esacs!ferrara