From d4768073fa67e7f78872bc80f4dff1dd8aa32f69 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 10 Mar 2016 17:19:34 +0000 Subject: Implement non-rectangular windows using the Window Driver mechanism. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_cocoa.mm') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index bbd26c389..256569a04 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2998,7 +2998,7 @@ void Fl_X::make(Fl_Window* w) [cw setHasShadow:YES]; [cw setAcceptsMouseMovedEvents:YES]; } - if (w->shape_data_) { + if (w->is_shaped()) { [cw setOpaque:NO]; // shaped windows must be non opaque [cw setBackgroundColor:[NSColor clearColor]]; // and with transparent background color } -- cgit v1.2.3