X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fframe-draw.c;h=7e404c0c04bf032e3117f4b53268e5863c057be7;hp=fbe58061bafed48a608e1407bbaf4a1aeeda6e52;hb=c6005c0b33000cd4c96228c523d915c012db54dd;hpb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a diff --git a/ioncore/frame-draw.c b/ioncore/frame-draw.c index fbe5806..7e404c0 100644 --- a/ioncore/frame-draw.c +++ b/ioncore/frame-draw.c @@ -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); }