Re: GDK bug



"David O'Toole" <dto qwsi net> writes:
configure_event is emitted whenever a window's size or position
change, for any reason.

This isn't a related problem, but I thought I'd ask:

Is there any way to tell size changes apart from simple position changes
(for a window?) I'm rendering a bitmap on configure_event and drawing
parts of it on expose_event, but I don't want the (mildly expensive)
re-render to happen if the window is just moved.


I think this works:

 if (event->width != widget->allocation.width ||
     event->height != widget->allocation.height)
   do_redraw ();

Havoc




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