summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-11-03Fixes Fl_Tile resizing for "sudden" size changes: #1102Matthias Melcher
Enlarging and reducing wdth and height needed to be treated seprately when the bottom right corner of the resizable would overshoot the final size of the tile.
2024-11-03Recent macOS SDKs badly define MAC_OS_X_VERSION_MAX_ALLOWEDManoloFLTK
and the correct information is in __MAC_OS_X_VERSION_MAX_ALLOWED
2024-11-03Recent Xcode versions badly define MAC_OS_X_VERSION_MAX_ALLOWEDManoloFLTK
and the correct information is in __MAC_OS_X_VERSION_MAX_ALLOWED
2024-11-02Fix confusing alignmentAlbrecht Schlosser
note: no "real" code changes
2024-11-02Fix Mac: "Merge All Windows" fails if focused window is borderless (#1100)ManoloFLTK
2024-11-01New member function ↵ManoloFLTK
Fl_Cocoa_Window_Driver::capture_decorated_window_10_6(NSWindow*) This function hides the code to capture an image of a window that varies a lot with macOS versions
2024-11-01Improve and clarify documentationAlbrecht Schlosser
2024-11-01Wayland: Fix issue in maximization of a borderless window (#1099)ManoloFLTK
Also fixes scenarios mixing fullscreen and maximization: - maximize - set fullscreen - unset fullscreen - un-maximize with and without window border.
2024-10-31Windows: fix compiler warning [-Wstrict-aliasing]Albrecht Schlosser
In function ‘void innards(...)’: src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx:132:23: dereferencing type-punned pointer will break strict-aliasing rules BITMAPINFO &bmi = *((BITMAPINFO*)bmibuffer); ~^~~~~~~~~~~~~~~~~~~~~~~ Found with gcc 12 (MinGW cross compiler) Also: use correct sizes (sizeof) rather than hardcoded values.
2024-10-31macOS: prevent changing window border while window is maximizedManoloFLTK
2024-10-31macOS: prevent changing window border while window is fullscreenManoloFLTK
2024-10-31Fix "Mac: Mixing native fullscreen button with Fl_Window::fullscreen() has ↵ManoloFLTK
side effects" (#1098)
2024-10-31Restore Fl_Widget_Surface::draw_decorated_window() under XQuartzManoloFLTK
2024-10-30Fix Windows: fullscreen doesn't always pick the correct display (#1097)ManoloFLTK
2024-10-27Quick fix for Windows Ctrl character handling - cont'dManoloFLTK
2024-10-26Windows: fix for using AltGr key after kludge for Ctrl+ (#1093)ManoloFLTK
2024-10-19Fixes Fl_Text_Display line number calculation. (#1088)Matthias Melcher
2024-10-19Windows: process the +-containing key used with Ctrl in cross-platform wayManoloFLTK
2024-10-15Fix documentation typos and trailing whitespaceAlbrecht Schlosser
2024-10-15Improve method to draw boxes of type FL_BORDER_BOX and FL_SHADOW_BOX (#1089)ManoloFLTK
These types of boxes frame a background with a rectangular frame of another color. The previous procedure to draw them was not robust to GUI rescaling creating cases where space between the border and the background was not drawn. The new drawing procedure for these boxes first paints the whole area (frame included) with the background color and next draws the frame over the just painted rectangle. No uncolored space is possible. It was also necessary to very slightly modify Fl_Scalable_Graphics_Driver::rect() used by the Windows and X11 (no Cairo) backends to make sure fl_rect(x,y,w,h) exactly frames fl_rectf(x,y,w,h) without drawing outside the filled area.
2024-10-12Fix compiler warning [-Wstringop-overflow=]Albrecht Schlosser
2024-10-10Make Pango-handled text accept legacy CP1252-encoded text - continuedManoloFLTK
2024-10-10Missing *not* in Fl_Preferences docs.Matthias Melcher
2024-10-10Fl_Preferences documentation update.Matthias Melcher
2024-10-08Restore building without Cairo developer files (#1087)ManoloFLTK
2024-10-07Define missing macro on Windows/MinGW platformAlbrecht Schlosser
... as reported today by Ian on fltk.general in thread "Mingw-32 compile issue with new 4/5 mousebutton hooks (fltk-1.4)"
2024-10-07Make Pango-handled text accept legacy CP1252-encoded textManoloFLTK
2024-10-07Fix shortcut FL_CTRL+'=' on Windows (#1086)Albrecht Schlosser
Strictly spoken, commit 3fbd4f944f0a introduced a regression on Windows. The additional table entry VK_OEM_PLUS overrode the old behavior because the value of VK_OEM_PLUS is 0xbb (see comment in code).
2024-10-06Submenus with no callback enter their submenu instead of closing the whole ↵dannye
menu (#1043) Thanks for those nice changes.
2024-10-06Support mouse buttons 4 + 5 (aka "side buttons") (#1076, #1068)Albrecht Schlosser
This work is based on PR 1068 (patch by @CendioHalim) and extended to store button status (4,5) in Fl::event_state() like it's done for other mouse buttons (1-3). Changes: - new symbol: FL_BUTTON4 = side button 1 = "back" - new symbol: FL_BUTTON5 = side button 2 = "forward" - modified : FL_BUTTONS now includes bits for two side buttons Note: the status of these new buttons is not maintained by X11, therefore we need to maintain them in internal variables for this platform.
2024-10-06Apply `scaling-shortcut-kludge.patch` for WindowsAlbrecht Schlosser
... as proposed by Manolo in a private mail. This patch allows to detect "ctrl+'-' on keyboards with digits in uppercase positions (e.g. French)" but this is only preliminary for FLTK 1.4.0. Windows keyboard handling should be revised in FLTK 1.5.0 or higher.
2024-10-06Update comment, sorry for the noiseAlbrecht Schlosser
2024-10-06Add comments regarding X11 keyboard layout handlingAlbrecht Schlosser
This commit doesn't change the code flow although the code has been slightly refactored.
2024-10-06Fl_Text_Display: Fix text selection off-by-one bug (#1080)Andrew Fuller
This seems to have been left over from when mouse text selection would start a text selection on the left side of the character and always extend the selection to include the character under the cursor. We now perform text selection based on whether the selection spans across the horizontal center of a character and so this next_char() causes the endpoint of the selection to be incorrectly shifted to the right.
2024-10-04Add necessary dirty indicatorManoloFLTK
2024-10-04macOS fix for "Fl_Window::cursor(...) does not work reliably on some ↵ManoloFLTK
platforms" (#1082)
2024-09-28Fix bug in Fl_Text_Display when tab is followed by multibyte charAndrew Fuller
When the user clicks the right half of a tab, we add 1 (the byte len of the tab) to obtain the starting index of the following character.
2024-09-25Fix issue about Fl_Tabs and maximizing window under Windows (#1075)ManoloFLTK
2024-09-14Bypass Mutter bug for menubar in fullscreen window (see #1061)ManoloFLTK
2024-09-13Fix "Wayland crash on mapping windows at startup" (#1072)ManoloFLTK
2024-09-13Fix problems introduced at commits 9b777cc and d70c79bManoloFLTK
2024-09-12Fix typo in Doxygen text: unod --> undoManoloFLTK
2024-09-11Fix "fl_read_image() missing right and bottom pixel line" (#1066)ManoloFLTK
2024-09-10Wayland + Mutter: fix issue with menubar on fullscreen window (#1061)ManoloFLTK
2024-09-09Wayland: one more fix yet for interactive move of subwindow inside parentManoloFLTK
2024-09-07Add support of GL with Wayland for Linux on Apple hardwareManoloFLTK
2024-09-07Add pointer to Fl_Image::scale() to documentation of Fl_Image::copy(int, int)ManoloFLTK
2024-09-04Fixes menu scrolling for secondary screens (#1060)Matthias Melcher
- huge menus would scroll down when the mouse pointer hit position 0, but for some secondary screens, the top edge is not at y==0, so now we check for a range a the top border of the working space of the screen showing the menu.
2024-09-04Fixes menubar glitch when mouse is at y==0 (#1060)Matthias Melcher
2024-09-02Reverting false Ctrl Key fix on WindowsMatthias Melcher
- 1ae43956e2bfb933d63fc774ca8e4ed22e4108dd