summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
AgeCommit message (Collapse)Author
2021-12-07Fix for fltk.coredev "reentrant calls with Fl_Window::resize" - cont'dManoloFLTK
2021-12-06macOS platform: compute the screen number where a top window is mapped.ManoloFLTK
2021-12-05Fixes STR #3352: "tiny window problem if child group larger than window"Greg Ercolano
2021-11-24Fix for [fltk.coredev] reentrant calls with Fl_Window::resizeManoloFLTK
2021-11-05Fix for issue #279 about detecting early retina with GL windows.ManoloFLTK
2021-11-05Make "FLTK_CONSOLIDATE_MOTION" user-definable (issue #76)Albrecht Schlosser
This undocumented macro is used on X11 and macOS platforms to consolidate mouse move events, i.e. to collect some events and send them later as one event. The old macro name CONSOLIDATE_MOTION has been renamed to FLTK_CONSOLIDATE_MOTION since it is now a "global" symbol. Users can define FLTK_CONSOLIDATE_MOTION in their build system, e.g. on the compiler commandline, as 0 or 1 to disable or enable this feature, respectively. In FLTK 1.3 the default was 0 (OFF) on macOS and 1 (ON) on X11. In FLTK 1.4 the default is always 0 (OFF).
2021-10-27Fix indenting, whitespace errors and dependenciesAlbrecht Schlosser
(no code changes)
2021-10-06macOS: "Fix fullscreen window level corner cases"ManoloFLTK
This corresponds to changes of PR#277 (Author: Samuel Mannehed)
2021-09-24macOS platform: facilitate use when another toolkit handles the system menu.ManoloFLTK
2021-08-04macOS: account for deprecation of [NSBitmapImageRep ↵ManoloFLTK
initWithFocusedViewRect:] in macOS 10.14
2021-08-03macOS: fix paste of image for macOS 11.xManoloFLTK
With macOS 11.x, the pasteboard image can be found with floating point pixel values. This changes makes FLTK process adequately such image data.
2021-07-24Fix © year.ManoloFLTK
2021-05-27 macOS: Avoid premature FL_RELEASE event at start of drag-n-drop operation.ManoloFLTK
This fixes this issue mentioned in fltk.general : https://www.fltk.org/newsgroups.php?s40623+gfltk.general+v40638+T
2021-02-16Use <config.h> when appropriate.ManoloFLTK
2020-11-27Fix for issue #123 - macOS platformManoloFLTK
2020-11-19Remove unnecessary function call when macOS ≥ 10.6ManoloFLTK
2020-11-19Add comment about detection of macOS "Big Sur" 11.0 at run-time.ManoloFLTK
2020-11-17Fix whitespace and minor formatting issuesAlbrecht Schlosser
2020-10-12Simpler macOS implementation of capture of window titlebars.ManoloFLTK
2020-10-11Change procedure to capture window titlebar for macOS ≥ 10.15ManoloFLTK
That is necessary to support macOS Big Sur because previous procedure did not work for tabbed windows. The new procedure is potentially usable from macOS 10.5, but tested at this stage for macOS ≥ 10.15.
2020-10-05Fix for issue #145 and for unbundled macOS apps.ManoloFLTK
2020-09-19Fix when building with SDK 10.15 and running with 11.0 Big SurManoloFLTK
When FLTK runs under macOS "Big Sur", the OS appears as 11.0 if FLTK was built with SDK 11.0 and as 10.16 it it was built with SDK 10.15.
2020-09-07Further minor change to support macOS 11.0 "Big Sur".ManoloFLTK
2020-08-17Make recent changes to support macOS 11.0 "Big Sur" active with 11.0 only.ManoloFLTK
An optimisation used for drawing to windows is not possible under 11.0. This commits reinstalls it under macOS 10.14 and 10.15.
2020-08-11Slightly simpler code in the drawRect:(NSRect) methodManoloFLTK
2020-08-10Add support of macOS 11.0 "Big Sur".ManoloFLTK
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-27Fix for "Crashing regression in MacOS code" in fltk.coredev.ManoloFLTK
2020-07-24Fix problem when calling Fl_Window::fullscreen_off() in certain circumstances.ManoloFLTK
The problem was discovered in fltk.coredev "Crashing regression in MacOS code"
2020-07-17Restore use of virtual Fl_Window::resize() to be notified when window moves.ManoloFLTK
A previous commit c66caf5dce9331fd3e011873711a768adb28cf9d "Simpler implementation of Fl_Cocoa_Window_Driver::resize()" made that Fl_Window::resize() was no longer called by FLTK when a window is moved. This prevented the undocumented practice of re-implementing the virtual function Fl_Window::resize() and use it as a way to get a notification that a window was moved.
2020-07-11Simpler code to support layer-based views that occur when macOS ≥ 10.14ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-15Allow using an Fl_SVG_Image object as window icon.ManoloFLTK
Fix for issue #90: Setting an svg image as a window icon causes a segfault.
2020-06-10Fix for "Fullscreen_off removing the icon from the titlebar on MacOS" in ↵ManoloFLTK
fltk.coredev
2020-06-02Fix for PR#86: mousewheel simultaneous X and Y scrolling under OS X .ManoloFLTK
Thanks to the OP for most of the fix.
2020-06-01Avoid repeated calls to CGBitmapContextGetBytesPerRow().ManoloFLTK
2020-05-31Have NSAutoreleasePool released after last use of variable eManoloFLTK
2020-05-31Protect NSHomeDirectory() call by an NSAutoreleasePool.ManoloFLTK
That may be necessary if preferences are accessed before fl_open_display() was called.
2020-05-20Reorganise code that captures on-screen window content.ManoloFLTK
Also introduce new rect_to_NSBitmapImageRep: method of class FLWindow which makes it possible to reimplement it.
2020-05-08Replace Fl_Window_Driver::is_a_rescale() by Fl_Window::is_a_rescale()ManoloFLTK
so it can be called by any user code.
2020-04-21Slightly improve drawing of window titlebars.ManoloFLTK
2020-03-11Remove CodeWarrior "support"Albrecht Schlosser
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
2020-02-28Fl_Sys_Menu_Bar: make it strict equivalent of Fl_Menu_Bar outside macOSManoloFLTK
2020-02-09Restore macOS capacity to turn window fullscreen encompassing several screens.ManoloFLTK
2020-02-07Fix Fl_Cocoa_Window_Driver::resize when called before the window is show()'n.ManoloFLTK
2020-02-06Fix computation of Fl_Window::decorated_h() on macOS when screen is scaled.ManoloFLTK
2020-01-19Have Fl_Quartz_Copy_Surface_Driver use retina resolution for resulting bitmapManoloFLTK
2020-01-18Use visible size information when copying macOS image from clipboard.ManoloFLTK
2020-01-14Fix typo in commentManoloFLTK
2020-01-13Bring main window to front when it's not there.ManoloFLTK