Re: Cullng drawing depending on visibility events
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Sven Neumann <sven gimp org>
- Cc: Federico Mena Quintero <federico ximian com>, gtk-devel-list gnome org
- Subject: Re: Cullng drawing depending on visibility events
- Date: 04 Apr 2003 13:58:15 +0200
Sven Neumann <sven gimp org> writes:
> Hi,
>
> Federico Mena Quintero <federico ximian com> writes:
>
> > So I wrote a quick patch to make the drawing functions not do anything
> > if windows are fully obscured.
>
> shouldn't windows who are fully obscured not get any expose events at
> all? Any sane application that only redraws itself in response of an
> expose event shouldn't have this problem anyway. For generated expose
> events (from timers etc.), it might make sense to delay the event
> until the window becomes visible again. Doing this in the drawing
> functions seems to be the wrong place, or did I miss something ?
Yeah, that is simpler than the patch I just sent. Simply doing
if (window->fully_obscured)
{
throw_invalid_region_away();
return;
}
before emitting the expose event, should work just as well.
Søren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]