Albrecht Schlosser
97bab9abbd
Fix compiler warning on macOS: remove unused variable
2024-06-21 18:08:49 +02:00
ManoloFLTK
5ee1c0c9df
macOS: fix changes to Fl_X::first with front window
2024-06-21 15:37:34 +02:00
ManoloFLTK
4aa321fe68
Avoid ScreenCaptureKit bug that may modify a non-resizable window's styleMask
2024-06-19 11:21:58 +02:00
ManoloFLTK
377ff11ec9
Link frameworks used by recent macOS versions with -weak_framework
...
This allows FLTK apps to use the recent frameworks when they run on recent
macOS versions even if the minimum supported macOS version of these apps is more
ancient than the framework.
2024-06-16 19:48:55 +02:00
ManoloFLTK
7d98413d46
macOS 15.0 Sequoia: fix capture of window titlebars
...
The previous procedure using CGWindowListCreateImageFromArray()
is obsoleted in macOS 15.0 .
The new procedure requires an additional framework: ScreenCaptureKit;
FLTK uses it only for macOS ≥ 15.0
2024-06-14 11:55:53 +02:00
ManoloFLTK
f3f69b892d
Remove useless Fl_Window_Driver accessors after new member Fl_Window::get_size_range()
2024-05-27 11:39:27 +02:00
ManoloFLTK
7410498a7f
Comment that macOS windows move OK between LowRes and HighRes screens
2024-05-17 09:53:47 +02:00
ManoloFLTK
324fcfcb62
macOS: Fix scaling subwindows - cont'd #927
2024-05-08 19:43:56 +02:00
Matthias Melcher
3f91c8b5ee
macOS: Fix scaling subwindows #927
...
Converting Cocoa coordinates into FLTK coordinates
should be avoided as much as possible because the
conversion loses precision for scaling != 100%.
2024-04-23 19:25:31 +02:00
ManoloFLTK
b4b98c5d57
macOS: Avoid possible crash in makeMainWindow when another win is modal
2024-03-28 18:20:38 +01:00
ManoloFLTK
483729f4f8
macOS: Fullscreen window loses sys menu bar if 2nd window is opened ( #924 )
2024-03-11 15:18:59 +01:00
ManoloFLTK
ad7d1dc1c6
Fullscreen window loses sys menu bar if 2nd window is opened ( #924 )
2024-03-04 19:43:17 +01:00
ManoloFLTK
130f5b6dc1
A window needs is_resizable() true to obey fullscreen() or maximize()
2024-03-03 17:50:49 +01:00
ManoloFLTK
746cbf861a
Minor optimization of macOS automatic Window menu
2024-02-27 13:46:41 +01:00
ManoloFLTK
4863f959c8
macOS: Window menu of system menubar follows changes in active window
2024-02-27 09:13:41 +01:00
ManoloFLTK
0818d4ec5b
Fix: Fl_Window::fullscreen() does not work correctly on Mac ( #920 )
2024-02-26 12:15:47 +01:00
ManoloFLTK
ba5ed296e9
Improve implementation of the macOS Window menu
...
The macOS Window menu is connected to the item array of the macOS menubar
via FL_SUBMENU_POINTER. This facilitates memorization of pointers
to items of the macOS menubar because the item array no longer changes
each time a window opens of gets closed.
2024-02-20 16:00:01 +01:00
ManoloFLTK
6a607c8282
maximize method for Fl_Window (macOS) ( #820 ) - cont'd
2023-11-06 00:05:18 +01:00
ManoloFLTK
0ae927a00e
Add Fl_Window::maximize() and Fl_Window::un_maximize()
2023-11-05 19:42:55 +01:00
ManoloFLTK
234c153853
Avoid macOS 14 warning message when app is launched from command line
2023-10-23 12:13:29 +02:00
ManoloFLTK
39a157a7dd
Wayland: implement transient scale factor windows as popups
...
as discussed in issue #794 .
Also, fix for macOS the use of the FL_FOCUS event for these transient windows
2023-10-23 11:15:04 +02:00
ManoloFLTK
c27009e52c
launching a binary from the command line hangs on macOS Sonoma ( #799 )
2023-10-18 07:21:20 +02:00
ManoloFLTK
c62501c93a
launching a binary from the command line hangs on macOS Sonoma ( #799 )
2023-10-17 19:02:34 +02:00
Albrecht Schlosser
01038e832a
Fix trailing whitespace and dependencies
2023-10-13 19:08:30 +02:00
Matthias Melcher
58b13b868e
FLUID: allow mousewheel events on coordinate input
...
MACOS: make sure that even small mouse wheel deltas count at least as 1 unit
2023-10-13 13:59:01 +02:00
Matthias Melcher
d7a5e5099c
Fixes conversion warning.
2023-10-11 23:33:31 +02:00
ManoloFLTK
86cadec162
macOS: remove availability warning
2023-10-11 10:53:03 +02:00
ManoloFLTK
00aab5e698
Add legit #pragma clang diagnostic ignored "-Wdeprecated-declarations"
2023-10-11 10:17:31 +02:00
ManoloFLTK
bb7e1635ad
macOS: remove a bunch of deprecation warnings
2023-10-09 11:16:36 +02:00
ManoloFLTK
f6690a9742
Fix: macOS runtime warning makeKeyWindow... ( #785 )
2023-10-06 19:02:09 +02:00
ManoloFLTK
21fdd42838
macOS: add extra comment explaining need for PPC-specific source code
2023-08-09 21:15:20 +02:00
Sergey Fedorov
356ccc4b70
Fl_cocoa.mm: fix Apple macro for PPC case
2023-08-09 21:07:01 +02:00
Albrecht Schlosser
5bcd6ca8f2
Revert " #733 partial: Adds rotation gesture event on MacOS"
...
This reverts commit 3049e6394a
as agreed upon in GitHub Issue #733 .
2023-08-05 16:37:38 +02:00
Matthias Melcher
3049e6394a
#733 partial: Adds rotation gesture event on MacOS
2023-08-05 12:19:42 +02:00
ManoloFLTK
4bf9172a8e
Replace internal fl_create_offscreen() calls by new Fl_Image_Surface
2023-04-23 10:03:02 +02:00
ManoloFLTK
7091df8c93
Restore building with macOS SDK 10.9 and earlier
2023-04-14 17:57:33 +02:00
ManoloFLTK
7e2defc10d
macOS: remove calls to deprecated API
2023-04-14 15:24:18 +02:00
ManoloFLTK
f459fdb637
Allow scaled image in Fl_Window::cursor(const Fl_RGB_Image *, int, int)
2023-02-13 12:11:04 +01:00
ManoloFLTK
1045538ed0
Fix launching of unbundled app from /tmp
2023-01-30 20:08:18 +01:00
ManoloFLTK
37775538c4
Extend commit a4b33f8
to other uses of function convert_crlf()
...
Helper function convert_crlf() from file fl_wayland_clipboard_dnd.cxx has been
repaired by commit a4b33f8
(13 jan 2023). But the same function was also in
file Fl_cocoa.mm. This commit moves the repaired code to class Fl_Screen_Driver
and has both fl_wayland_clipboard_dnd.cxx and Fl_cocoa.mm use it.
2023-01-14 09:56:09 +01:00
ManoloFLTK
f3e21ddad2
Fix for "Rename Fl_X* Fl_Window::i private class member" ( #223 )
2023-01-13 21:16:17 +01:00
ManoloFLTK
9bdaf5a84d
Virtual member Fl_Window_Driver::makeWindow() now returns void
2023-01-09 17:35:38 +01:00
Matthias Melcher
a63ad76603
FLUID refactor and macOS warnings removed ( #623 )
...
P renamed to g_project
class Project renamed to class Fluid_Project
fixes macOS type cast warnings
2023-01-01 20:05:42 +01:00
ManoloFLTK
7e4306af6b
Fix "Focus is lost leaving full screen on macOS 13" ( #608 )
2022-12-29 15:54:32 +01:00
Albrecht Schlosser
c570bd8f96
Fix trailing whitespace
2022-11-01 20:06:22 +01:00
ManoloFLTK
30efed7fd4
Revert 75016cb
because it doesn't work well with macOS < 13.0
...
The problem is visible with test/tile when moving the sub window's border.
This also fixes issue #508
2022-10-03 10:21:39 +02:00
ManoloFLTK
75016cb853
macOS: implement (BOOL)[FLView isOpaque] to improve drawing performance.
2022-09-30 09:03:54 +02:00
ManoloFLTK
c96a4f3141
macOS platform: rename Fl_Cocoa_Gl_Window_Driver.cxx to .mm
2022-09-29 16:25:14 +02:00
ManoloFLTK
c2efb0d849
macOS: support of FLTK widgets in OpenGL 3 windows - cont'd.
...
This code is OK under macOS 10 9 and 13.
2022-09-28 17:06:00 +02:00
ManoloFLTK
7d58e23854
macOS: add necessary setWantsBestResolutionOpenGLSurface:YES message.
2022-09-28 08:23:36 +02:00