diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-23 10:21:27 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-23 10:21:27 +0100 |
| commit | 21c0134931ef22d6645fc182d7812776e14e369d (patch) | |
| tree | 14e41d62f041a000214442be26aefb33eb911c02 /src/Fl_cocoa.mm | |
| parent | f9255e375cb4751404e33837cdddd6f2d31d96b9 (diff) | |
New member function const Fl_Image* Fl_Window::shape() replaces int Fl_Window::is_shaped()
The new function allows to get the window's shaping image
and delete it after use, if appropriate.
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 223e0bc47..6bbdd731c 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3131,7 +3131,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() [cw setHasShadow:YES]; [cw setAcceptsMouseMovedEvents:YES]; } - if (w->is_shaped()) { + if (w->shape()) { [cw setOpaque:NO]; // shaped windows must be non opaque [cw setBackgroundColor:[NSColor clearColor]]; // and with transparent background color } |
