summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-13Fix compiler warning if user code is compiled with '-Wextra' (2)Albrecht Schlosser
Replace '(void*)' cast with '(fl_intptr_t)' because older gcc (4.8.2) issues a warning with '(void*)'.
2023-04-13Lower Pango required version from 1.22 to 1.16ManoloFLTK
2023-04-13Standardize API to "graphics context" across platformsManoloFLTK
Rename fl_wl_cairo() to fl_wl_gc() Add function cairo_t* fl_cairo_gc() under OPTION_USE_CAIRO
2023-04-12Wayland: limit copied pixels when window update is a region - cont'dManoloFLTK
Simpler Fl_Wayland_Window_Driver::flush_overlay() is enough.
2023-04-12Wayland: limit copied pixels when window update is a region - cont'dManoloFLTK
Handle Fl_Overlay_Window objects
2023-04-11Document the new 'fltk-config' features (#647, #656)Albrecht Schlosser
fltk-config has been extended to allow more than one source file and additional compiler flags and link libraries. This commit adds documentation (no functional changes).
2023-04-11Add public accessor methods Fl_Widget::needs_keyboard()Albrecht Schlosser
- add public getter and setter for - document the new methods - document that these methods are not yet used internally - remove unnecessary friend declaration 'NEEDS_KEYBOARD' flag - simplify Fl::focus(Fl_Widget *) using the new methods.
2023-04-11Fix compiler warning if user code is compiled with '-Wextra'Albrecht Schlosser
This commit fixes two similar warnings: "cast between incompatible function types from ‘void (*)(Fl_Widget*)’ to ‘void (*)(Fl_Widget*, void*)’ [-Wcast-function-type]"
2023-04-10Fix fltk-config check for local invocation and libs (#717)Albrecht Schlosser
This updates the changes done for issues #647 and #656.
2023-04-10Fix CMake generation for minimal CMake version (3.2.3)Albrecht Schlosser
Unfortunately `execute_process(COMMAND pkg-config ...)` used for CMake versions lower than 3.4 appends a trailing newline ('\n') to the output variable which must be removed. Replace double slash '//' returned by pkg-config with a single '/' for consistency (applies to all CMake versions). Tested with CMake 3.2.3 but we should probably raise the minimal CMake version to a more recent version in the future.
2023-04-10Fix compiler warning [-Wsign-compare]Albrecht Schlosser
2023-04-10Fix missing quotes in fltk-config.in (#714)Albrecht Schlosser
2023-04-09Allow more input files and compiler flags in fltk-config (#647, #656)Albrecht Schlosser
Also refactor, reformat, and simplify code: - move all variable substitutions to the beginning of the file - simplify Cairo support and nesting of 'if' clauses - unify indenting: 4 spaces, no tabs
2023-04-08Add usage example of Fl_Window::cursor(const Fl_RGB_Image *, int, int)ManoloFLTK
2023-04-08Wayland.dox: add "Fractional scaling" paragraphManoloFLTK
2023-04-08 Fix "Giant cursor on Wayland + fractional scaling" (#713)ManoloFLTK
2023-04-07Wayland: non-resizable windows are positioned in the wrong place (#711) - ↵ManoloFLTK
cont'd That is also expected to be the fix for #712
2023-04-07Wayland: fix for issue #712 (hopefully)ManoloFLTK
2023-04-07Wayland: fix reporting of relative location of multiple displaysManoloFLTK
2023-04-06Wayland.dox: beef up information related to listenersManoloFLTK
2023-04-05Wayland: limit copied pixels when window update is a regionManoloFLTK
2023-04-05 Wayland backend draws everything two or three times - cont'd (#708)ManoloFLTK
2023-04-04Removed Fulltick referenceMatthias Melcher
2023-04-04Removed the Fulltick referenceMatthias Melcher
2023-04-04Remove superfluous #include directivesManoloFLTK
2023-04-04Add minor details to README.Wayland.txtManoloFLTK
2023-04-03Remove unneeded #include directivesManoloFLTK
2023-04-03Improve member function Fl_Wayland_Screen_Driver::surface_to_window()ManoloFLTK
Rename it to Fl_Wayland_Window_Driver::surface_to_window() and avoid loop over all mapped FLTK windows that used to be performed.
2023-04-03Wayland: update comment about differences between compositorsManoloFLTK
Mutter goes back to what it did in earlier versions. Fortunately, FLTK can handle this change.
2023-04-03Wayland + Weston: fix focus loss after click on titlebarManoloFLTK
2023-04-02 Fix "Wayland: non-resizable windows are positioned in the wrong place" (#711)ManoloFLTK
2023-04-02Add details about what version of Ubuntu is required for WaylandManoloFLTK
2023-04-02Fix "recipe for target '../../src/xdg-decoration-protocol.c' failed" (#704)ManoloFLTK
2023-03-29Improve detection of the location of Wayland protocol files across OSesManoloFLTK
2023-03-29Improve Wayland support of Fl::event_key(int)ManoloFLTK
Key pressed when the Wayland window acquires focus are now detected.
2023-03-29Complete explanatory comment about Weston compositorManoloFLTK
2023-03-29Wayland: improve switching window to/from fullscreen modeManoloFLTK
The call to Fl_Window::fullscreen() can be made before or after the window is show()'n Tested compositors: Mutter, Plasma, Weston.
2023-03-28Wayland + Plasma: fix switching fullscreen mode for borderless windowManoloFLTK
2023-03-28Wayland: fix regression in test/fullscreenManoloFLTK
Commit e918d94 to fix issue #708 broke turning back from fullscreen state for borderless window, visible in test/fullscreen.
2023-03-27Windows: use SHGetFolderPathW() for application data folder (#710)Albrecht Schlosser
See GitHub issue #710: "Fl_Preferences not stored on Windows 10" Summary: don't use the undocumented registry key "Shell Folders", use function SHGetFolderPathW() instead although this function is meanwhile deprecated (but available since Windows XP). Note: tested with 32-bit build running on Windows XP (works).
2023-03-27Wayland: move "struct seat" inside class Fl_Wayland_Screen_DriverManoloFLTK
2023-03-27Complete Fl_Wayland_Screen_Driver::close_display()ManoloFLTK
2023-03-26Improve methods Fl_Wayland_Screen_Driver::en/disable_im()ManoloFLTK
2023-03-26Implement methods Fl_Wayland_Screen_Driver::en/disable_im()ManoloFLTK
2023-03-25Wayland: remove compilation warning (#706) - cont'dAlbrecht Schlosser
The previous attempt to fix this issue in commit dcb4c39956092b6a4b9d8e0e85c2065099804119 missed to remove the keyword 'struct' in the offending statement. This new commit actually removes the compiler warning.
2023-03-25configure: test jpeg lib before png and zlibAlbrecht Schlosser
For some obscure reason finding the jpeg lib *after* configuring for local zlib and/or local png lib failed and thus switched to using the local jpeg unexpectedly. Searching for jpeg libs before png/zlib fixes this issue. Note: this is a pragmatic fix (aka workaround) rather than fixing the underlying issue. It would be interesting to find out why this happened.
2023-03-25Wayland: slightly simpler writing of function wl_keyboard_key()ManoloFLTK
2023-03-25Add Fl_Cairo_Graphics_Driver::focus_rect() overrideManoloFLTK
This allows to bypass what looks like a Cairo bug: FLTK_SCALING_FACTOR=1.7 bin/test/tabs click on tab2 ---> crash But no crash with other scaling factor values (e.g., 1.8).
2023-03-25Wayland: Fl::get_key(c) for lower case letters different behavior from X11 ↵ManoloFLTK
(#404)
2023-03-25More accurate documentation of function fl_wl_cairo()ManoloFLTK