Re: minor fix for GdkPixbuf
- From: Havoc Pennington <hp redhat com>
- To: Volodymyr Babin <babin krab ichf edu pl>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: minor fix for GdkPixbuf
- Date: 26 Jun 2001 23:45:55 -0400
Hi,
This is the obvious change but it doesn't actually work due to a race
condition - the window can move between the call to get its position
and the actual gdk_image_get().
I'll merge your patch with some other fixes I have to GdkPixbuf;
the solution to the race condition is to grab the server before
getting the window position, and release after calling
gdk_image_get().
This means putting the clipping in a slightly different place,
etc. But I hadn't written the clip code yet, so thanks for that.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]