remove shapes from windows



hi stefan,

could you please provide a corresponding gdk function for
gdk_window_shape_combine_mask, that will remove the shape again?

> /*
>  * This needs the X11 shape extension.
>  * If not available, simply remove the call to
>  * XShapeCombineMask. Shaped windows will look
>  * ugly, but programs still work.    Stefan Wille
>  */
> void
> gdk_window_shape_combine_mask (GdkWindow *window,
>                                GdkBitmap *mask,
>                                gint x, gint y)
> {
>   GdkWindowPrivate *window_private;
>   GdkWindowPrivate *pixmap_private;
> 
>   g_return_if_fail (window != NULL);
>   g_return_if_fail (mask != NULL);
> 
>   window_private = (GdkWindowPrivate*) window;
>   pixmap_private = (GdkWindowPrivate*) mask;
>   if (window_private->destroyed)
>     return;
> 
>   XShapeCombineMask  (window_private->xdisplay,
>                       window_private->xwindow,
>                       ShapeBounding,
>                       x, y, /* offset */
>                       (Pixmap)pixmap_private->xwindow,
>                       ShapeSet);
> }


---
ciaoTJ



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