GNOME Bugzilla – Bug 580023
Improve handling of errors when calling CompositeNameWindowPixmap
Last modified: 2009-04-24 14:02:03 UTC
To guard against CompositeNameWindowPixmap failing, just use an error trap. Previous code used: GrabServer/GetWindowAttributes/CompositeNameWindowPixmap/UngrabServer To prevent BadMatch errors from !viewable, but didn't check the return value of GetWindowAttributes and didn't check if an error occured during the error trap. This way is more correct and more efficient.
Created attachment 133212 [details] [review] Improve handling of errors when calling CompositeNameWindowPixmap
Pushed to master on git.gnome.org. (Thanks for looking the patches over, Tomas)