Document that Fl::add_fd() opens display under macOS

This commit is contained in:
ManoloFLTK
2023-01-30 07:39:20 +01:00
parent c798581e4e
commit 95f926fd01
+3 -1
View File
@@ -2081,9 +2081,11 @@ int Fl::clipboard_contains(const char *type)
Fl::remove_fd() gets rid of <I>all</I> the callbacks for a given Fl::remove_fd() gets rid of <I>all</I> the callbacks for a given
file descriptor. file descriptor.
Under UNIX/Linux/MacOS <I>any</I> file descriptor can be monitored (files, Under UNIX/Linux/macOS <I>any</I> file descriptor can be monitored (files,
devices, pipes, sockets, etc.). Due to limitations in Microsoft Windows, devices, pipes, sockets, etc.). Due to limitations in Microsoft Windows,
Windows applications can only monitor sockets. 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) void Fl::add_fd(int fd, int when, Fl_FD_Handler cb, void *d)
{ {