more on re- draw at end of re-size



In order to perform a lengthy graphics generation only at 
the  end of the user window resize operation, when the 
mouse button is released (there was a posting on the 
topic a few days ago), I found a way to do it without the 
use of timers  (worked, but was to ugly for words...).

The top level window - it seems - receives from Xwin  an 
extra GdkEventConfigure event when the user releases 
the button at the end of window resize operation.  This 
results in two  duplicate, consecutive TLW configure 
events, easy to detect and trigger graphics (on pixmap) 
regeneration.

Is it safe to assume this behaviour to be consistent 
across X versions and window managers/desktop 
systems?

What is the significance of send_event item in
GdkEventConfigure structure? The API states something
to the effect that 1 means it was sent explicitly by
XSendEvent - as opposed to what...?

thanks in advance,
TK






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]