From 95f926fd0191c6d1db93028e1134799f46f5506e Mon Sep 17 00:00:00 2001
From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
Date: Mon, 30 Jan 2023 07:39:20 +0100
Subject: Document that Fl::add_fd() opens display under macOS
---
src/Fl.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'src/Fl.cxx')
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 7fc7a93e5..1bbe95515 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -2081,9 +2081,11 @@ int Fl::clipboard_contains(const char *type)
Fl::remove_fd() gets rid of all the callbacks for a given
file descriptor.
- Under UNIX/Linux/MacOS any file descriptor can be monitored (files,
+ Under UNIX/Linux/macOS any file descriptor can be monitored (files,
devices, pipes, sockets, etc.). Due to limitations in Microsoft Windows,
Windows applications can only monitor sockets.
+
+ Under macOS, Fl::add_fd() opens the display if that's not been done before.
*/
void Fl::add_fd(int fd, int when, Fl_FD_Handler cb, void *d)
{
--
cgit v1.2.3