X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fframe-draw.c;h=7e404c0c04bf032e3117f4b53268e5863c057be7;hb=c6005c0b33000cd4c96228c523d915c012db54dd;hp=8591f2a254b3f84ca03fe99d4d5b6d76c51ad5a7;hpb=f869221ce49f0fb7cca48eee28daff8684305963;p=ion3.git diff --git a/ioncore/frame-draw.c b/ioncore/frame-draw.c index 8591f2a..7e404c0 100644 --- a/ioncore/frame-draw.c +++ b/ioncore/frame-draw.c @@ -1,7 +1,7 @@ /* * ion/ioncore/frame-draw.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * * See the included file LICENSE for details. */ @@ -219,7 +219,8 @@ void frame_set_shape(WFrame *frame) void frame_clear_shape(WFrame *frame) { - grbrush_set_window_shape(frame->brush, TRUE, 0, NULL); + if(frame->brush!=NULL) + grbrush_set_window_shape(frame->brush, TRUE, 0, NULL); }