summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-10-20Wayland drag-n-drop: send FL_DND_LEAVE when the dragging mouse leaves the windowManoloFLTK
2022-10-19Wayland drag-n-drop: handle subwindows as other platforms do (#516)ManoloFLTK
The d-n-d target window is now always the top-level window even if the mouse is over a subwindow. That's what all other platforms do. Global var fl_dnd_target_surface memorise what's the current d-n-d target surface and follows changes from top-window to subwindows.
2022-10-17Allow DnD from Wayland FLTK app to X11 FLTK app (#516)ManoloFLTK
2022-10-17Wayland drag-n-drop to Fl_Window: send necessary FL_ENTER event (#516)ManoloFLTK
Drag-n-drop under Wayland was OK in general except when the drop target is an Fl_Window because the belowmouse object is not set in this configuration. Processing an FL_ENTER event before the FL_DND_RELEASE event fixes that.
2022-10-16Fix "Fl::focus() changes Fl_Group::current() to null" (#515)Albrecht Schlosser
This issue is caused by setting `Fl_Group::current(0);` in Fl_Window::show(), i.e. in Fl_X::make_xid(..) in an attempt to fix a "very common user bug: forgot end()". As long as this is done, this commit fixes the issue. For details see GitHub issue #515.
2022-10-16macOS + homebrew: restore building with CMake's OPTION_APPLE_X11ManoloFLTK
These option combinations work: -DOPTION_APPLE_X11 -DOPTION_APPLE_X11 -DOPTION_USE_CAIRO But -DOPTION_APPLE_X11 -DOPTION_USE_PANGO is not possible because homebrew doesn't provide the pangoxft package.
2022-10-14Make sure display is open when using native file chooser (#514)ManoloFLTK
2022-10-13Fix regression in "configure --enable-shared" introduced at c96a4f3ManoloFLTK
2022-10-12Wayland platform: fix for issue #512 with fl_arc().ManoloFLTK
2022-10-10Remove duplications between Fl_Graphics_Driver and derived classes.ManoloFLTK
2022-10-10 Fl_Cairo_Graphics_Driver: fix Fl_Bitmap drawing whatever the endianness.ManoloFLTK
2022-10-10Fix for issue #511: allow fl_circle() even without calls to ↵ManoloFLTK
fl_begin/end_loop/polygon().
2022-10-09Fl_Cairo_Graphics_Driver: make image drawing correct whatever the host ↵ManoloFLTK
endianness.
2022-10-09Remove superfluous center alignment from imagesAlbrecht Schlosser
Doxygen uses a <div> with center alignment for images, hence adding HTML center alignment for image is not only superfluous but was also inconsistent. Also removed some more unnecessary HTML tags, updated copyright year.
2022-10-09Fix issue #510: image transparency is not properly processed.ManoloFLTK
2022-10-09Fix documentation of Fl_Timeout::insert()Albrecht Schlosser
2022-10-06Update window icon-related doc in platform-specific section.ManoloFLTK
2022-10-06Make Windows-specific HICON-using functions visible in doc.ManoloFLTK
2022-10-06Fix use of several FLTK widgets above an GL scene.ManoloFLTK
The code failed with 2 or more widgets when FLTK would trigger partial redraws of the widgets, unless the Fl_Gl_Window was FL_DAMAGE_ALL. This commit also adds a second FLTK widget to example/OpenGL3test to check this multiple widget situation, and fixes an error where operator ! was used instead of ~ .
2022-10-05Fix issue #509: Cairo drawing: unexpected behaviourManoloFLTK
This commit fixes " "drawing an fl_pie() with dimension 1x1". But it does not change "drawing fl_line() with begin position = end position does not show" because the same behaviour is observed with Windows and macOS.
2022-10-03Revert 75016cb because it doesn't work well with macOS < 13.0ManoloFLTK
The problem is visible with test/tile when moving the sub window's border. This also fixes issue #508
2022-10-02Add missing return value to Fl_WinAPI_Gl_Window_Driver::create_gl_context()ManoloFLTK
2022-10-02Clean use of virtual GLContext Fl_Gl_Window_Driver::create_gl_context().ManoloFLTK
2022-10-02macOS: simpler way to delete the GL1 context of widgets-using GL3 windows.ManoloFLTK
2022-10-01macOS: support 5 more keys as Fl_Sys_Menu_Bar item shortcuts.ManoloFLTK
2022-10-01macOS: fixed problem in resizing of widget-containing OpenGL 3 window.ManoloFLTK
2022-09-30FLTK widgets in OpenGL 3 windows: rewrite for driver system.ManoloFLTK
2022-09-30macOS: simpler code for auxiliary NSView supporting widgets on a GL3 window.ManoloFLTK
2022-09-30Support of FLTK widgets in OpenGL 3 windows under Windows.ManoloFLTK
2022-09-30macOS: implement (BOOL)[FLView isOpaque] to improve drawing performance.ManoloFLTK
2022-09-30macOS: support FL_Up,FL_Down,FL_Left,FL_Right system menu item shortcutsManoloFLTK
2022-09-29macOS platform: rename Fl_Cocoa_Gl_Window_Driver.cxx to .mmManoloFLTK
2022-09-29Support of FLTK widgets in OpenGL 3 windows - cont'd.ManoloFLTK
This commit allows to switch between FL_DOUBLE / FL_SINGLE modes in widget-containing GL3 windows. Demo program examples/OpenGL3test is modified to show FLTK widgets even if the platform does not support OpenGL 3.
2022-09-28macOS: support of FLTK widgets in OpenGL 3 windows - cont'd.ManoloFLTK
This code is OK under macOS 10 9 and 13.
2022-09-28macOS: add necessary setWantsBestResolutionOpenGLSurface:YES message.ManoloFLTK
2022-09-27Remove use of class Fl_Window_Driver inside libfltk_glManoloFLTK
2022-09-27Use PR #507 by @ggarra13 to fix issue #85.ManoloFLTK
2022-09-27Simpler code to support FLTK widgets in macOS OpenGL 3 windows.ManoloFLTK
Also, the application-level code to add widgets to a GL3 window becomes platform-independent.
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-09-26Fix crash under macOS 13 Ventura public beta 6 when closing menu window.ManoloFLTK
Bizarrely, an NSMouseEntered event arrives returning nil to [event window]!
2022-09-25Add cross-platform support for adding widgets to an OpenGL3-based Fl_Gl_Window.ManoloFLTK
Under non-macOS platforms, the key is to call glUseProgram(0); after having used OpenGL 3 which allows to then use OpenGL 1 and draw FLTK widgets over the OpenGL3 scene. Under macOS, this is impossible because macOS GL3 contexts are not compatible with GL1. The solution implemented here is to create an additional Fl_Gl_Window placed above and sized as the GL3-based window, to give it a non opaque, GL1-based context, and to put the FLTK widgets in that additional window.
2022-09-23GL3 for macOS platform: allow creation of GL1 and GL3 contexts by an app.ManoloFLTK
2022-09-23GL3 support under X11: ask for compatibility profile if possible.ManoloFLTK
2022-09-23Fix Fl_X11_Window_Driver::fullscreen_on() and ↵ManoloFLTK
Fl_X11_Window_Driver::fullscreen_off().
2022-09-23Wayland: process OPTION_USE_WAYLAND for Unix onlyManoloFLTK
2022-09-22Fix issue #501: build error under macOS 10.10ManoloFLTK
2022-09-22Wayland: fix window closing with titlelbar close button.ManoloFLTK
2022-09-17Allow use of Fl_Window::default_icon() with a scaled image - Part 2.ManoloFLTK
Default icons are handled according to their scaled size, if there scaled.
2022-09-15Make Fl::set_color(r,g,b,a) effective under Wayland and macOS.ManoloFLTK
2022-09-14Improve virtual void* Fl_Gl_Window_Driver::GetProcAddress(procName)ManoloFLTK